Skip to content

Commit

Permalink
fix e2e app remove spec race on terminating service (#3245)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpComb authored and kke committed Feb 5, 2018
1 parent 22e7a90 commit 3bd5305
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/spec/features/plugin/app-command/deploy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
k = run('kontena app deploy')
k.wait
expect(k.code).to eq(0)

# hack to ensure that the app services get cleaned up before the next spec runs
run! 'kontena service update --stop-timeout=1s simple-lb'
run! 'kontena service deploy --force simple-lb'

k = run!('kontena service ls')
%w(lb nginx redis).each do |service|
expect(k.out).to match(/simple-#{service}/)
Expand Down

0 comments on commit 3bd5305

Please sign in to comment.