style: 合入后修 group_test gofmt 与 err 阴影
This commit is contained in:
@@ -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) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user