api,netty: Fix TruthIncompatibleType

This commit is contained in:
ZHANG Dapeng 2020-09-15 11:22:44 -07:00 committed by GitHub
parent 9dd56a7f0f
commit ee5b5929d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ public class ClientInterceptorsTest {
assertSame(listener, call.listener);
assertSame(headers, call.headers);
interceptedCall.sendMessage(null /*request*/);
assertThat(call.messages).containsExactly((Void) null /*request*/);
assertThat(call.messages).containsExactly((String) null);
interceptedCall.halfClose();
assertTrue(call.halfClosed);
interceptedCall.request(1);

View File

@ -345,7 +345,7 @@ public class WriteBufferingAndExceptionHandlerTest {
assertThat(chan.pipeline().context(handler)).isNull();
assertThat(write.get().getClass()).isSameInstanceAs(Object.class);
assertTrue(flush.get());
assertThat(chan.pipeline()).doesNotContain(handler);
assertThat(chan.pipeline().toMap().values()).doesNotContain(handler);
}
@Test