]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2541] Roll back in unit test before checking result
authorJelte Jansen <jelte@isc.org>
Thu, 13 Dec 2012 20:30:24 +0000 (21:30 +0100)
committerJelte Jansen <jelte@isc.org>
Thu, 13 Dec 2012 20:30:24 +0000 (21:30 +0100)
src/lib/datasrc/tests/sqlite3_accessor_unittest.cc

index dbe57a98610041a2ed1dc302e5adbfa304ebd70a..8dff6d5a2135bc5c2d5b2fe4b043baf2f22af0c2 100644 (file)
@@ -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