Skip to content

Commit bf22959

Browse files
committed
Use larger example in chunk tests
1 parent 6ce298c commit bf22959

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rest/src/test/scala/io/udash/rest/SomeServerApiImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class SomeServerApiImpl {
1818

1919
@GET
2020
def streamBinary(chunkSize: Int): Observable[Array[Byte]] = {
21-
val content = "HelloWorld".getBytes
21+
val content = ("HelloWorld" * 100).getBytes
2222
Observable.fromIterable(content.grouped(chunkSize).toSeq)
2323
}
2424

rest/src/test/scala/io/udash/rest/raw/ServerImplApiTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class ServerImplApiTest extends AnyFunSuite with ScalaFutures {
341341
.map(bytes => new String(bytes))
342342
.toListL.runToFuture
343343

344-
chunksFuture.futureValue.mkString("") == "HelloWorld"
344+
chunksFuture.futureValue.mkString("") == "HelloWorld" * 100
345345
}
346346
)
347347
}

0 commit comments

Comments
 (0)