fix: change error message

Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
This commit is contained in:
wafuwafu13 2022-12-20 21:54:52 +09:00
parent 57413851b6
commit 2041d5f245

View File

@ -158,7 +158,7 @@ func TestIsHaltErr(t *testing.T) {
assert.Equal(t, assert.Equal(t,
isHaltErr(context.TODO(), errors.New("etcdserver: some etcdserver error")), isHaltErr(context.TODO(), errors.New("etcdserver: some etcdserver error")),
true, true,
"error created by errors.New should not be unavailable error", "error created by errors.New should be unavailable error",
) )
assert.Equal(t, assert.Equal(t,
isHaltErr(context.TODO(), rpctypes.ErrGRPCStopped), isHaltErr(context.TODO(), rpctypes.ErrGRPCStopped),