Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Wait up to 30s for version check error in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
awh committed Nov 22, 2016
1 parent 664ba87 commit 0fe4f56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/700_status_and_report_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ $SSH $HOST1 tee /tmp/hosts.checkpoint-api > /dev/null <<EOF
EOF
CHECKPOINT_DISABLE="" WEAVE_DOCKER_ARGS="-v /tmp/hosts.checkpoint-api:/etc/hosts" weave_on $HOST1 launch

assert_raises "timeout 30 cat <( docker_on $HOST1 logs -f weave | grep -m 1 'Error checking version' )"
assert "weave_on $HOST1 report -f '{{.VersionCheck.Enabled}}'" "true"
assert "weave_on $HOST1 report -f '{{.VersionCheck.Success}}'" "false"
assert "weave_on $HOST1 report -f '{{.VersionCheck.NewVersion}}'" ""
assert_raises "weave_on $HOST1 status | grep 'failed to check latest version - see logs; next check at'"



weave_on $HOST1 reset

Expand Down

0 comments on commit 0fe4f56

Please sign in to comment.