Skip to content

Commit dad0daf

Browse files
authored
Merge pull request #130 from ISISComputingGroup/maybe_fix_test
Fix race condition on initial value?
2 parents 9b49357 + b30701d commit dad0daf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test_genie_python_using_simple.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ def setUp(self):
236236
self.wait_before = 1
237237
self.wait_after = 2
238238
self.max_wait = (self.wait_before + self.wait_after) * 2
239-
g.cset(self.block_name, 0)
239+
initial_block_value = 0
240+
g.cset(self.block_name, initial_block_value)
241+
g.waitfor_block(self.block_name, value=initial_block_value, maxwait=TIMEOUT)
240242
assert_that(check_block_exists(self.block_name), is_(True))
241243

242244
def test_GIVEN_waiting_for_exact_value_on_block_WHEN_block_reaches_value_THEN_waitfor_completes(

0 commit comments

Comments
 (0)