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 4f7a5e4 commit 0a3284eCopy full SHA for 0a3284e
okhttp/src/test/java/io/grpc/okhttp/OkHttpWritableBufferAllocatorTest.java
@@ -55,8 +55,8 @@ public void testInitialCapacityHasMaximum() {
55
56
@Test
57
public void testIsExactBelowMaxCapacity() {
58
- WritableBuffer buffer = allocator().allocate(4097);
+ WritableBuffer buffer = allocator().allocate(Segment.SIZE + 1);
59
assertEquals(0, buffer.readableBytes());
60
- assertEquals(Segment.SIZE, buffer.writableBytes());
+ assertEquals(Segment.SIZE * 2, buffer.writableBytes());
61
}
62
0 commit comments