Skip to content

Commit 0246cbd

Browse files
committed
fix test
1 parent dcd8dd7 commit 0246cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SQLiteTests/Typed/QueryIntegrationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ class QueryIntegrationTests: SQLiteTestCase {
272272
// https://github.com/stephencelis/SQLite.swift/issues/285
273273
func test_order_by_random() throws {
274274
try insertUsers(["a", "b", "c'"])
275-
let result = Array(try db.prepare(users.select(email).order(SQLite.Expression<Int>.random()).limit(1)))
276-
XCTAssertEqual(1, result.count)
275+
let resultCount = try db.prepare(users.select(email).order(SQLite.Expression<Int>.random()).limit(1)).count
276+
XCTAssertEqual(1, resultCount)
277277
}
278278

279279
func test_with_recursive() throws {

0 commit comments

Comments
 (0)