Skip to content

Commit

Permalink
Fix unsafe text assertion in tests (#716)
Browse files Browse the repository at this point in the history
Fix unsafe text assertion in tests

SUMMARY

This fixes a problem with unsafe text in an assertion.

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Bikouo Aubin
  • Loading branch information
gravesm authored May 15, 2024
1 parent 6360763 commit 8858b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/targets/k8s_info/tasks/wait.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
- name: Check that module waited
assert:
that:
- ( lookup('pipe', 'date +%s') - start ) > 30
- ( lookup('pipe', 'date +%s')|int - start|int ) > 30

- name: Create simple pod
k8s:
Expand Down

0 comments on commit 8858b19

Please sign in to comment.