Skip to content

Commit

Permalink
Fix TestAuthPlugin2 testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Nov 26, 2021
1 parent 91a7804 commit 9cc513d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,10 @@ func TestAuthPlugin2(t *testing.T) {
}

cc.isUnixSocket = true
_, err = cc.checkAuthPlugin(ctx, &resp)
require.NoError(t, failpoint.Enable("github.com/pingcap/tidb/server/FakeAuthSwitch", "return(1)"))
respAuthSwitch, err := cc.checkAuthPlugin(ctx, &resp)
require.NoError(t, failpoint.Disable("github.com/pingcap/tidb/server/FakeAuthSwitch"))
require.Equal(t, respAuthSwitch, []byte(mysql.AuthNativePassword))
require.NoError(t, err)

}

0 comments on commit 9cc513d

Please sign in to comment.