Browse Source

Fix value assertion - should be 2 (1-3+2*2=2)

Ionel Cristian Mărieș 11 years ago
parent
commit
90ce8a4d4d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/tests/worker/test_hub.py

+ 1 - 1
celery/tests/worker/test_hub.py

@@ -83,7 +83,7 @@ class test_LaxBoundedSemaphore(Case):
         x.grow(2)
         cb2.assert_called_with(2)
         cb3.assert_called_with(3)
-        self.assertEqual(x.value, 3)
+        self.assertEqual(x.value, 2)
         self.assertEqual(x.initial_value, 3)
 
         self.assertFalse(x._waiting)