get rid of duplicate counter variable

This commit is contained in:
AlanCoding
2018-06-05 15:54:48 -04:00
parent 26ffad11a5
commit 16696a6fea
3 changed files with 4 additions and 6 deletions

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)