Skip to content

Commit 62bb29f

Browse files
committed
Update SQLiteAdapterTests.swift
1 parent 5271d10 commit 62bb29f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Tests/SQLiteAdapterTests/SQLiteAdapterTests.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,11 +840,10 @@ final class SQLiteTests: XCTestCase {
840840
try sqlite.insertRow(sql: sqlStatement, params: ["searchId", 1, "jsonString"])
841841
try sqlite.insertRow(sql: sqlStatement, params: ["searchId", 1, "jsonString"])
842842
try sqlite.insertRow(sql: sqlStatement, params: ["searchId", 1, "jsonString"])
843-
let (_, returnedLastId) = try sqlite.insertRow(sql: sqlStatement, params: ["searchId", 1, "jsonString"])
843+
let (_, lastId) = try sqlite.insertRow(sql: sqlStatement, params: ["searchId", 1, "jsonString"])
844844

845-
let lastInsertId = sqlite.lastInsertID
846-
XCTAssertEqual(lastInsertId, 5)
847-
XCTAssertEqual(returnedLastId, lastInsertId)
845+
XCTAssertEqual(sqlite.lastInsertID, 5)
846+
XCTAssertEqual(lastId, sqlite.lastInsertID)
848847
}
849848

850849
func testGetChangesAndGetTotalChanges() throws {

0 commit comments

Comments
 (0)