diff --git a/internal/app/group/group_test.go b/internal/app/group/group_test.go index 94101f4..eb820d4 100644 --- a/internal/app/group/group_test.go +++ b/internal/app/group/group_test.go @@ -622,8 +622,8 @@ func (r *raceTalk) CheckTalkPasswordForJoin(ctx context.Context, actorID, target func TestR307CreateRejectsActorDisabledOrDeletedBeforeWrite(t *testing.T) { t.Parallel() cases := []struct { - name string - code string + name string + code string mutate func(ctx context.Context, t *testing.T, idApp *identity.App, db *store.DB) }{ { @@ -671,8 +671,8 @@ func TestR307CreateRejectsActorDisabledOrDeletedBeforeWrite(t *testing.T) { ctx := context.Background() insertEP(t, db, "alice", 1) insertEP(t, db, "bob", 1) - if err := idApp.SelfSetTalkPassword(ctx, "bob", "secret"); err != nil { - t.Fatal(err) + if setErr := idApp.SelfSetTalkPassword(ctx, "bob", "secret"); setErr != nil { + t.Fatal(setErr) } gate.mutate = func() { tc.mutate(ctx, t, idApp, db) }