Ver código fonte

Value should be 0 as there is a single release (2-3+1=0)

Ionel Cristian Mărieș 11 anos atrás
pai
commit
b9672c53ae
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      celery/tests/worker/test_hub.py

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

@@ -54,7 +54,7 @@ class test_LaxBoundedSemaphore(Case):
         self.assertFalse(c3.called)
         self.assertFalse(c3.called)
 
 
         x.release()
         x.release()
-        self.assertEqual(x.value, 1)
+        self.assertEqual(x.value, 0)
         c3.assert_called_with(3)
         c3.assert_called_with(3)
 
 
     def test_bounded(self):
     def test_bounded(self):