Skip to content

Commit

Permalink
test(state): fix possible exec order swap
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 12, 2025
1 parent ca5b51e commit 1f8dd8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ def trigger_side_effect(**_):
result = [line.strip() for line in str(server).split("\n")]
expected = [line.strip() for line in str(test_modified_keys.__doc__).split("\n")]

# sometime 13 and 14 could have a reverse execution order
# as trame does not guaranty the execution order of the callbacks.
result.pop(14)
result.pop(14)
expected.pop(14)
expected.pop(14)

print(result)

assert expected == result

0 comments on commit 1f8dd8a

Please sign in to comment.