Skip to content

Commit 1f4fc3a

Browse files
committed
Clarify why we need sleep.
1 parent c3d1e9a commit 1f4fc3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packs/tests/actions/chains/test_key_triggers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ chain:
6969
ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100"
7070
ST2_API_URL: "{{protocol}}://{{hostname}}:9101"
7171
ST2_AUTH_TOKEN: "{{token}}"
72+
# Note: We sleep to wait for the actual trigger instance to be written
73+
# in the db so the next task retrieves a correct trigger instance
7274
cmd: "st2 key set a b ; sleep 2"
7375
on-success: check_key_create_trigger_instance
7476
-
@@ -116,6 +118,8 @@ chain:
116118
ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100"
117119
ST2_API_URL: "{{protocol}}://{{hostname}}:9101"
118120
ST2_AUTH_TOKEN: "{{token}}"
121+
# Note: We sleep to wait for the actual trigger instance to be written
122+
# in the db so the next task retrieves a correct trigger instance
119123
cmd: "st2 key set a c ; sleep 2"
120124
on-success: check_key_change_trigger_instance
121125
-

0 commit comments

Comments
 (0)