Skip to content

Commit 35ce194

Browse files
committed
Improved DataBufferUtilsTest
1 parent 4b92bf2 commit 35ce194

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-core/src/test/java/org/springframework/core/io/buffer/support/DataBufferUtilsTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,15 @@ public void readUnalignedChannel() throws Exception {
6161
.toURI();
6262
FileChannel channel = FileChannel.open(Paths.get(uri), StandardOpenOption.READ);
6363

64-
Flux<DataBuffer> flux = DataBufferUtils.read(channel, this.bufferFactory, 2);
64+
Flux<DataBuffer> flux = DataBufferUtils.read(channel, this.bufferFactory, 5);
6565

6666
TestSubscriber
6767
.subscribe(flux)
6868
.assertNoError()
6969
.assertComplete()
7070
.assertValuesWith(
71-
stringConsumer("fo"), stringConsumer("ob"),
72-
stringConsumer("ar"), stringConsumer("ba"),
73-
stringConsumer("zq"), stringConsumer("ux")
71+
stringConsumer("fooba"), stringConsumer("rbazq"),
72+
stringConsumer("ux")
7473
);
7574

7675
assertFalse(channel.isOpen());

0 commit comments

Comments
 (0)