-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test: Enhanced running in unstable environments #12966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I can get successful in four rows except for failing to prepare preview env. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will not block this PR and see what's the nightly test result.
@@ -126,30 +118,47 @@ func runContextTests(t *testing.T, tests []ContextTest) { | |||
{Name: "pvc", FF: "persistent_volume_claim"}, | |||
} | |||
|
|||
for _, ff := range ffs { | |||
func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func() { }
is redundant.
@@ -109,7 +138,7 @@ func TestPrebuildWorkspaceTaskFail(t *testing.T) { | |||
t.Fatalf("cannot start workspace: %q", err) | |||
} | |||
|
|||
t.Cleanup(func() { | |||
defer func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you could summarize when to use defer and when to use t.Cleanup.
Description
Fix a failed of this job
Related Issue(s)
Relates #12248
How to test
Run the test
Release Notes
Documentation
Werft options: