Skip to content

Commit

Permalink
Update call to timeout to account for breaking change (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
montmanu authored Feb 7, 2020
1 parent 79adf36 commit 113dfec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func waitForRollout(c *cli.Context, runner Runner) error {
path := kubectlCmd

if waitSeconds != 0 {
command = append([]string{"-t", strconv.Itoa(waitSeconds), path}, command...)
command = append([]string{strconv.Itoa(waitSeconds), path}, command...)
path = timeoutCmd
}

Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func RunWaitForRollout(t *testing.T, specs []string, expectedValues []string) {
c := cli.NewContext(nil, set, nil)
testRunner := new(MockedRunner)
for _, s := range expectedValues {
testRunner.On("Run", []string{"timeout", "-t", "256", "kubectl", "rollout", "status", s, "--namespace", "test-ns"}).Return(nil)
testRunner.On("Run", []string{"timeout", "256", "kubectl", "rollout", "status", s, "--namespace", "test-ns"}).Return(nil)
}
err := waitForRollout(c, testRunner)
testRunner.AssertExpectations(t)
Expand Down

0 comments on commit 113dfec

Please sign in to comment.