Skip to content

Commit

Permalink
Merge pull request containerd#170 from klihub/fixes/oversized-call-te…
Browse files Browse the repository at this point in the history
…st-errmsg
  • Loading branch information
fuweid authored Aug 20, 2024
2 parents 6556229 + 84e1784 commit 3f02183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func TestOversizeCall(t *testing.T) {
Foo: strings.Repeat("a", 1+messageLengthMax),
}
if err := client.Call(ctx, serviceName, "Test", tp, tp); err == nil {
t.Fatalf("expected error from non-existent service call")
t.Fatalf("expected error from oversized message")
} else if status, ok := status.FromError(err); !ok {
t.Fatalf("expected status present in error: %v", err)
} else if status.Code() != codes.ResourceExhausted {
Expand Down

0 comments on commit 3f02183

Please sign in to comment.