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) {
|
func TestR307CreateRejectsActorDisabledOrDeletedBeforeWrite(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
name string
|
name string
|
||||||
code string
|
code string
|
||||||
mutate func(ctx context.Context, t *testing.T, idApp *identity.App, db *store.DB)
|
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()
|
ctx := context.Background()
|
||||||
insertEP(t, db, "alice", 1)
|
insertEP(t, db, "alice", 1)
|
||||||
insertEP(t, db, "bob", 1)
|
insertEP(t, db, "bob", 1)
|
||||||
if err := idApp.SelfSetTalkPassword(ctx, "bob", "secret"); err != nil {
|
if setErr := idApp.SelfSetTalkPassword(ctx, "bob", "secret"); setErr != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(setErr)
|
||||||
}
|
}
|
||||||
gate.mutate = func() { tc.mutate(ctx, t, idApp, db) }
|
gate.mutate = func() { tc.mutate(ctx, t, idApp, db) }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user