-
Notifications
You must be signed in to change notification settings - Fork 1.3k
dockerfile: fix client init in testGitQueryString #6179
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -357,8 +357,6 @@ func testGitQueryString(t *testing.T, sb integration.Sandbox) { | |||||||||
| f := getFrontend(t, sb) | ||||||||||
|
|
||||||||||
| subModDir := t.TempDir() | ||||||||||
| defer os.RemoveAll(subModDir) | ||||||||||
|
|
||||||||||
| err := runShell(subModDir, []string{ | ||||||||||
| "git init", | ||||||||||
| "git config --local user.email test", | ||||||||||
|
|
@@ -375,7 +373,6 @@ func testGitQueryString(t *testing.T, sb integration.Sandbox) { | |||||||||
| submodServerURL := subModServer.URL | ||||||||||
|
|
||||||||||
| gitDir := t.TempDir() | ||||||||||
| defer os.RemoveAll(gitDir) | ||||||||||
| err = runShell(gitDir, []string{ | ||||||||||
| "git init", | ||||||||||
| "git config --local user.email test", | ||||||||||
|
|
@@ -640,11 +637,7 @@ COPY foo out | |||||||||
| }) | ||||||||||
| } | ||||||||||
|
|
||||||||||
| cl, err := client.New(sb.Context(), sb.Address()) | ||||||||||
| require.NoError(t, err) | ||||||||||
| defer c.Close() | ||||||||||
|
Comment on lines
-643
to
-645
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was the actual fix, correct? I was trying to find where the deadlock was, but I guess somewhere in the Or is it related to the Lines 154 to 157 in 9fcedf9
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actual fix is
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, gotcha; thanks! |
||||||||||
|
|
||||||||||
| err = cl.Prune(sb.Context(), nil) | ||||||||||
| err = c.Prune(sb.Context(), nil) | ||||||||||
| require.NoError(t, err) | ||||||||||
|
|
||||||||||
| for _, tc := range tcases { | ||||||||||
|
|
||||||||||
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.
This is not needed,
t.TempDir()is removed when test is completed.