Skip to content

Commit

Permalink
Issue #61: fix failing test for TransactionObserver and savepoints
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed May 28, 2016
1 parent 03a5671 commit 5453aec
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ class TransactionObserverSavepointsTests: GRDBTestCase {
XCTAssertEqual(Int.fetchOne(db, "SELECT COUNT(*) FROM items4"), 1)
}

XCTAssertEqual(observer.lastCommittedEvents.count, 2)
XCTAssertEqual(observer.lastCommittedEvents.count, 4)
XCTAssertTrue(match(event: observer.lastCommittedEvents[0], kind: .Insert, tableName: "items1", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[0], kind: .Insert, tableName: "items2", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[0], kind: .Insert, tableName: "items3", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[1], kind: .Insert, tableName: "items4", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[1], kind: .Insert, tableName: "items2", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[2], kind: .Insert, tableName: "items3", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[3], kind: .Insert, tableName: "items4", rowId: 1))
}
}

Expand Down Expand Up @@ -210,8 +210,8 @@ class TransactionObserverSavepointsTests: GRDBTestCase {
}

XCTAssertEqual(observer.lastCommittedEvents.count, 2)
XCTAssertTrue(match(event: observer.lastCommittedEvents[0], kind: .Insert, tableName: "items", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[1], kind: .Insert, tableName: "items", rowId: 2))
XCTAssertTrue(match(event: observer.lastCommittedEvents[0], kind: .Insert, tableName: "items1", rowId: 1))
XCTAssertTrue(match(event: observer.lastCommittedEvents[1], kind: .Insert, tableName: "items4", rowId: 2))
}
}

Expand Down

0 comments on commit 5453aec

Please sign in to comment.