From 5453aec1d0d12b4b080f94f280df9105ab7b9993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 28 May 2016 15:00:26 +0200 Subject: [PATCH] Issue #61: fix failing test for TransactionObserver and savepoints --- .../TransactionObserverSavepointsTests.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/Public/Core/TransactionObserver/TransactionObserverSavepointsTests.swift b/Tests/Public/Core/TransactionObserver/TransactionObserverSavepointsTests.swift index 12e26e8795..19b297efa2 100644 --- a/Tests/Public/Core/TransactionObserver/TransactionObserverSavepointsTests.swift +++ b/Tests/Public/Core/TransactionObserver/TransactionObserverSavepointsTests.swift @@ -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)) } } @@ -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)) } }