mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(client): change error message
Signed-off-by: wafuwafu13 <mariobaske@i.softbank.jp>
This commit is contained in:
parent
dc88d90763
commit
57413851b6
@ -158,7 +158,7 @@ func TestIsHaltErr(t *testing.T) {
|
||||
assert.Equal(t,
|
||||
isHaltErr(context.TODO(), errors.New("etcdserver: some etcdserver error")),
|
||||
true,
|
||||
`error prefixed with "etcdserver: " should be halt error by default`,
|
||||
"error created by errors.New should not be unavailable error",
|
||||
)
|
||||
assert.Equal(t,
|
||||
isHaltErr(context.TODO(), rpctypes.ErrGRPCStopped),
|
||||
@ -188,7 +188,7 @@ func TestIsUnavailableErr(t *testing.T) {
|
||||
assert.Equal(t,
|
||||
isUnavailableErr(context.TODO(), errors.New("etcdserver: some etcdserver error")),
|
||||
false,
|
||||
`error prefixed with "etcdserver: " should not be unavailable error by default`,
|
||||
"error created by errors.New should not be unavailable error",
|
||||
)
|
||||
assert.Equal(t,
|
||||
isUnavailableErr(context.TODO(), rpctypes.ErrGRPCStopped),
|
||||
|
Loading…
x
Reference in New Issue
Block a user