Skip to content

Commit d7ac581

Browse files
committed
fixup
1 parent eea4e99 commit d7ac581

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cli/restart_test.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,8 @@ func TestRestart(t *testing.T) {
282282
func TestRestartWithParameters(t *testing.T) {
283283
t.Parallel()
284284

285-
t.Run("DoNotAskForImmutables", func(t *testing.T) {
286-
t.Parallel()
287-
288-
echoResponses := &echo.Responses{
285+
echoResponses := func() *echo.Responses {
286+
return &echo.Responses{
289287
Parse: echo.ParseComplete,
290288
ProvisionPlan: []*proto.Response{
291289
{
@@ -304,12 +302,16 @@ func TestRestartWithParameters(t *testing.T) {
304302
},
305303
ProvisionApply: echo.ApplyComplete,
306304
}
305+
}
306+
307+
t.Run("DoNotAskForImmutables", func(t *testing.T) {
308+
t.Parallel()
307309

308310
// Create the workspace
309311
client := coderdtest.New(t, &coderdtest.Options{IncludeProvisionerDaemon: true})
310312
owner := coderdtest.CreateFirstUser(t, client)
311313
member, _ := coderdtest.CreateAnotherUser(t, client, owner.OrganizationID)
312-
version := coderdtest.CreateTemplateVersion(t, client, owner.OrganizationID, echoResponses)
314+
version := coderdtest.CreateTemplateVersion(t, client, owner.OrganizationID, echoResponses())
313315
coderdtest.AwaitTemplateVersionJobCompleted(t, client, version.ID)
314316
template := coderdtest.CreateTemplate(t, client, owner.OrganizationID, version.ID)
315317
workspace := coderdtest.CreateWorkspace(t, member, template.ID, func(cwr *codersdk.CreateWorkspaceRequest) {

0 commit comments

Comments
 (0)