Browse Source

[2541] Roll back in unit test before checking result

Jelte Jansen 12 years ago
parent
commit
2c565f3b83
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/lib/datasrc/tests/sqlite3_accessor_unittest.cc

+ 1 - 2
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