Skip to content

Commit 1370ab3

Browse files
committed
use t.fatal
1 parent 645bc5a commit 1370ab3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

coderd/agentapi/stats_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,12 @@ func TestUpdateStates(t *testing.T) {
390390

391391
templateScheduleStore = schedule.MockTemplateScheduleStore{
392392
GetFn: func(context.Context, database.Store, uuid.UUID) (schedule.TemplateScheduleOptions, error) {
393-
panic("should not be called")
393+
t.Fatal("getfn should not be called")
394+
return schedule.TemplateScheduleOptions{}, nil
394395
},
395396
SetFn: func(context.Context, database.Store, database.Template, schedule.TemplateScheduleOptions) (database.Template, error) {
396-
panic("not implemented")
397+
t.Fatal("setfn not implemented")
398+
return database.Template{}, nil
397399
},
398400
}
399401
batcher = &workspacestatstest.StatsBatcher{}

0 commit comments

Comments
 (0)