Skip to content

Commit b10a361

Browse files
committed
fixup! fix(cli): ensure that the support bundle command does not panic on zero values
1 parent 157164c commit b10a361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/support_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ func TestSupportBundle(t *testing.T) {
183183
w.WriteHeader(http.StatusOK)
184184
}
185185
}))
186+
defer srv.Close()
186187
u, err := url.Parse(srv.URL)
187188
require.NoError(t, err)
188189
client := codersdk.New(u)
189-
defer srv.Close()
190190

191191
d := t.TempDir()
192192
path := filepath.Join(d, "bundle.zip")

0 commit comments

Comments
 (0)