We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58504af commit 98f0612Copy full SHA for 98f0612
internal/table/retry_test.go
@@ -155,10 +155,10 @@ func TestDoCreateSessionError(t *testing.T) {
155
},
156
nil,
157
)
158
- if !xerrors.Is(err, context.DeadlineExceeded) {
159
- t.Errorf("unexpected error: %v", err)
160
- }
161
- if !xerrors.IsOperationError(err, Ydb.StatusIds_UNAVAILABLE) {
+ switch {
+ case xerrors.Is(err, context.DeadlineExceeded):
+ case xerrors.IsOperationError(err, Ydb.StatusIds_UNAVAILABLE):
+ default:
162
t.Errorf("unexpected error: %v", err)
163
}
164
})
0 commit comments