]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
unit testing fix for tests/testCoss.cc
authorwessels <>
Wed, 25 Apr 2007 05:35:46 +0000 (05:35 +0000)
committerwessels <>
Wed, 25 Apr 2007 05:35:46 +0000 (05:35 +0000)
note that store_dirs_rebuilding is now initialized to 1 instead of 0

src/tests/testCoss.cc

index 629bc1806a7d0e9793bd81f10496261d4e13cd85..1a8dd4deb6c7a3dd85a94391c63fd5d1fa3c63a6 100644 (file)
@@ -175,7 +175,7 @@ testCoss::testCossSearch()
     StockEventLoop loop;
 
     /* our swapdir must be scheduled to rebuild */
-    CPPUNIT_ASSERT_EQUAL(1, StoreController::store_dirs_rebuilding);
+    CPPUNIT_ASSERT_EQUAL(2, StoreController::store_dirs_rebuilding);
 
     loop.run();
 
@@ -184,7 +184,7 @@ testCoss::testCossSearch()
      */
 
     /* nothing left to rebuild */
-    CPPUNIT_ASSERT_EQUAL(0, StoreController::store_dirs_rebuilding);
+    CPPUNIT_ASSERT_EQUAL(1, StoreController::store_dirs_rebuilding);
 
     /* add an entry */
     {