Merge pull request #2060 from AlanCoding/one_less_counter

Get rid of duplicate counter variable
This commit is contained in:
Alan Rominger
2018-06-20 09:46:03 -04:00
committed by GitHub
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -448,7 +448,7 @@ class TestGenericRun(TestJobExecution):
def test_event_count(self):
with mock.patch.object(self.task, 'get_stdout_handle') as mock_stdout:
handle = OutputEventFilter(lambda event_data: None)
handle._event_ct = 334
handle._counter = 334
mock_stdout.return_value = handle
self.task.run(self.pk)