From 7e0158e1e9dcf9bbc3c3f2d60b372366069b052b Mon Sep 17 00:00:00 2001 From: Anna Song Date: Fri, 6 May 2022 08:01:19 -0700 Subject: [PATCH] Skip flaky tests Skip tests that behave reliably locally, but are flaky on macOS server. --- api/krusty/remoteload_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/krusty/remoteload_test.go b/api/krusty/remoteload_test.go index c14527934..5a6338c2d 100644 --- a/api/krusty/remoteload_test.go +++ b/api/krusty/remoteload_test.go @@ -226,14 +226,16 @@ func TestRemoteResourceParameters(t *testing.T) { httpsMasterBranch := "https://github.com/kubernetes-sigs/kustomize//examples/multibases/dev?ref=master" sshNoParams := "git@github.com:kubernetes-sigs/kustomize//examples/multibases/dev" - // some query parameter combinations not currently supported; should implement in future + // cases with expected errors are query parameter combinations that aren't supported yet; should implement in future tests := map[string]remoteResourceCase{ "https no params": { + skip: true, // flaky: passes locally, but sometimes fails on server; fix in future kustomization: fmt.Sprintf(resourcesField, httpsNoParam), error: true, expected: fmt.Sprintf(resourceErrorFormat+repoFindError, httpsNoParam), }, "https master": { + skip: true, // flaky: passes locally, but sometimes fails on server; fix in future kustomization: fmt.Sprintf(resourcesField, httpsMasterBranch), error: true, expected: fmt.Sprintf(resourceErrorFormat+repoFindError, httpsMasterBranch),