From 2c565f3b83fd09baffbeb82a7e8a4c56990f45dd Mon Sep 17 00:00:00 2001 From: Jelte Jansen Date: Thu, 13 Dec 2012 21:30:24 +0100 Subject: [PATCH] [2541] Roll back in unit test before checking result --- src/lib/datasrc/tests/sqlite3_accessor_unittest.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/datasrc/tests/sqlite3_accessor_unittest.cc b/src/lib/datasrc/tests/sqlite3_accessor_unittest.cc index dbe57a9861..8dff6d5a21 100644 --- a/src/lib/datasrc/tests/sqlite3_accessor_unittest.cc +++ b/src/lib/datasrc/tests/sqlite3_accessor_unittest.cc @@ -1610,10 +1610,9 @@ TEST_F(SQLite3Update, addZoneWhileLocked) { // Commit should do nothing, but not fail another_accessor->commit(); + accessor->rollback(); // New zone should not exist EXPECT_FALSE(accessor->getZone(new_zone).first); - - accessor->rollback(); } } // end anonymous namespace