From 9e77083d402c6839ce40cd104e2ebbf51b63f15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 28 Jun 2020 21:53:34 +0200 Subject: [PATCH] Relax profiling test --- Tests/GRDBTests/DatabaseTraceTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/GRDBTests/DatabaseTraceTests.swift b/Tests/GRDBTests/DatabaseTraceTests.swift index 7d95e1064..1cb955965 100644 --- a/Tests/GRDBTests/DatabaseTraceTests.swift +++ b/Tests/GRDBTests/DatabaseTraceTests.swift @@ -75,13 +75,13 @@ class DatabaseTraceTests : GRDBTestCase { try db.execute(sql: "CREATE table t(a);") XCTAssertEqual(lastSQL, "CREATE table t(a)") XCTAssertEqual(lastExpandedSQL, "CREATE table t(a)") - XCTAssertTrue(lastDuration! > 0) + XCTAssertTrue(lastDuration! >= 0) XCTAssert(lastDescription!.hasSuffix("s CREATE table t(a)")) try db.execute(sql: "INSERT INTO t (a) VALUES (?)", arguments: [1]) XCTAssertEqual(lastSQL, "INSERT INTO t (a) VALUES (?)") XCTAssertEqual(lastExpandedSQL, "INSERT INTO t (a) VALUES (1)") - XCTAssertTrue(lastDuration! > 0) + XCTAssertTrue(lastDuration! >= 0) XCTAssert(lastDescription!.hasSuffix("s INSERT INTO t (a) VALUES (1)")) db.add(function: DatabaseFunction("wait", argumentCount: 1, pure: true, function: { dbValues in