Skip to content

Commit

Permalink
Retry flaky ssh test on mac worker (#2941)
Browse files Browse the repository at this point in the history
- Simplified CLI SSH Suit execution to run togetheer with other non-plugin tests

https://onsi.github.io/ginkgo/#repeating-spec-runs-and-managing-flaky-specs
  • Loading branch information
a-b authored May 22, 2024
1 parent 3eec49b commit 01a610c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,13 @@ units-non-plugin: install-test-deps
@rm -f $(wildcard fixtures/plugins/*.exe)
@ginkgo version
CF_HOME=$(CURDIR)/fixtures CF_USERNAME="" CF_PASSWORD="" $(ginkgo_units) \
-skip-package integration,cf\ssh,plugin,cf\actors\plugin,cf\commands\plugin,cf\actors\plugin,util\randomword
CF_HOME=$(CURDIR)/fixtures $(ginkgo_units) -flake-attempts 3 cf/ssh
-skip-package integration,plugin,cf\actors\plugin,cf\commands\plugin,cf\actors\plugin,util\randomword
else
units-non-plugin: install-test-deps
@rm -f $(wildcard fixtures/plugins/*.exe)
@ginkgo version
CF_HOME=$(CURDIR)/fixtures CF_USERNAME="" CF_PASSWORD="" $(ginkgo_units) \
-skip-package integration,cf/ssh,plugin,cf/actors/plugin,cf/commands/plugin,cf/actors/plugin,util/randomword
CF_HOME=$(CURDIR)/fixtures $(ginkgo_units) -flake-attempts 3 cf/ssh
-skip-package integration,plugin,cf/actors/plugin,cf/commands/plugin,cf/actors/plugin,util/randomword
endif

units-full: build units-plugin units-non-plugin
Expand Down
2 changes: 1 addition & 1 deletion util/clissh/ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func BlockAcceptOnClose(fake *fake_net.FakeListener) {
}
}

var _ = Describe("CLI SSH", Serial, func() {
var _ = Describe("CLI SSH", Serial, FlakeAttempts(9), func() {
var (
fakeSecureDialer *clisshfakes.FakeSecureDialer
fakeSecureClient *clisshfakes.FakeSecureClient
Expand Down

0 comments on commit 01a610c

Please sign in to comment.