diff --git a/cmd/validate_test.go b/cmd/validate_test.go index bd5c91a..f0bd72c 100644 --- a/cmd/validate_test.go +++ b/cmd/validate_test.go @@ -60,15 +60,3 @@ func TestFileDoesNotExist(t *testing.T) { assert.NotNil(err, "did not error") assert.Contains(b.String(), "Cannot find container-canary/kubeflow:doesnotexist", "did not fail") } - -func TestValidateRespectsStartupTimeout(t *testing.T) { - assert := assert.New(t) - b := new(bytes.Buffer) - rootCmd.SetOut(b) - rootCmd.SetErr(b) - rootCmd.SetArgs([]string{"validate", "--file", "../examples/kubeflow.yaml", "container-canary/long-sleep:local", "--startup-timeout", "3"}) - err := rootCmd.Execute() - - assert.NotNil(err, "should fail") - assert.Contains(b.String(), "validation failed", "container failed to start after 3 seconds") -} diff --git a/internal/testdata/containers/long-sleep.Dockerfile b/internal/testdata/containers/long-sleep.Dockerfile deleted file mode 100644 index 1aba201..0000000 --- a/internal/testdata/containers/long-sleep.Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM alpine - -CMD [ "sleep", "60" ]