Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2885 from 2opremio/remove-e2e-race-condition
Browse files Browse the repository at this point in the history
Remove race condition in sync e2e test
  • Loading branch information
Alfonso Acosta authored Mar 1, 2020
2 parents e834437 + 07e010a commit b7ff1df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/e2e/12_sync.bats
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ function setup() {
poll_until_true 'workload podinfo' 'kubectl -n demo describe deployment/podinfo'

# Check the sync tag
git pull -f --tags
local sync_tag_hash
sync_tag_hash=$(git rev-list -n 1 flux)
local head_hash
head_hash=$(git rev-list -n 1 HEAD)
[ "$head_hash" = "$sync_tag_hash" ]
poll_until_equals "sync tag" "$head_hash" 'git pull -f --tags > /dev/null 2>&1; git rev-list -n 1 flux'

podinfo_image=$(kubectl get pod -n demo -l app=podinfo -o"jsonpath={['items'][0]['spec']['containers'][0]['image']}")

# Bump the image of podinfo, duplicate the resource definition (to cause a sync failure)
Expand Down

0 comments on commit b7ff1df

Please sign in to comment.