Skip to content

Commit 13ec7a2

Browse files
committed
Twiddle with times to try and fix timeouts
1 parent 5215e6a commit 13ec7a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_helper.bash

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/usr/bin/env bash
22

3-
# used to make sure we sleep for 20 seconds between tests to avoid rate limiting
4-
sleep 20
5-
63
# To make the tests run faster, we don't wait between calls to DescribeStacks
74
# to check on the status of Create/Update.
8-
export STACKER_STACK_POLL_TIME=0
5+
export STACKER_STACK_POLL_TIME=2
96

107
if [ -z "$STACKER_NAMESPACE" ]; then
118
>&2 echo "To run these tests, you must set a STACKER_NAMESPACE environment variable"
@@ -46,6 +43,8 @@ assert_has_line() {
4643
# information. If you need to execute the stacker binary _without_ calling
4744
# "run", you can use "command stacker".
4845
stacker() {
46+
# Sleep between runs of stacker to try and avoid rate limiting issues.
47+
sleep 2
4948
echo "$ stacker $@"
5049
run command stacker "$@"
5150
echo "$output"

0 commit comments

Comments
 (0)