diff options
Diffstat (limited to 'internal/helper/error_test.go')
-rw-r--r-- | internal/helper/error_test.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/helper/error_test.go b/internal/helper/error_test.go index 65a625297..c4f4e7841 100644 --- a/internal/helper/error_test.go +++ b/internal/helper/error_test.go @@ -45,11 +45,6 @@ func TestErrorf(t *testing.T) { expectedCode: codes.NotFound, }, { - desc: "ErrAbortedf", - errorf: ErrAbortedf, - expectedCode: codes.Aborted, - }, - { desc: "ErrDataLossf", errorf: ErrDataLossf, expectedCode: codes.DataLoss, @@ -221,7 +216,7 @@ func TestGrpcCode(t *testing.T) { exp: codes.NotFound, }, "double helper wrapped status": { - in: ErrAbortedf("outer: %w", fmt.Errorf("context: %w", ErrNotFoundf(""))), + in: ErrFailedPreconditionf("outer: %w", fmt.Errorf("context: %w", ErrNotFoundf(""))), exp: codes.NotFound, }, "nil input": { |