Skip to content

Commit 8e38b59

Browse files
committed
fix(tests): fix assertions on default beverage
This fixes an issue where integration tests that would otherwise succeed, locally, fail close to the end because the user executing the tests has set the DEIS_DRINK_OF_CHOICE environment variable, which interferes with the assertion that the default beverage to be enjoyed whilst scaling is coffee. This corrects that problem by unsetting the DEIS_DRINK_OF_CHOICE environment variable prior to testing.
1 parent daa4e69 commit 8e38b59

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/bin/test-setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ ssh-add -D || eval $(ssh-agent) && ssh-add -D
8585
ssh-add ~/.ssh/$DEIS_TEST_AUTH_KEY
8686
ssh-add $DEIS_TEST_SSH_KEY
8787

88+
# clear the drink of choice in case the user has set it
89+
unset DEIS_DRINK_OF_CHOICE
90+
8891
# wipe out all vagrants & deis virtualboxen
8992
function cleanup {
9093
if [ "$SKIP_CLEANUP" != true ]; then

0 commit comments

Comments
 (0)