Skip to content

Commit 6a4ae5a

Browse files
committed
Remove deprecated do-while
1 parent aebae1d commit 6a4ae5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

e2e-grpc/src/test/scala/ProtoInputStreamSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ class ProtoInputStreamSpec extends AnyFunSpec with Matchers {
7373
var count = 0
7474
var buf = newBuffer
7575
val res = Array.newBuilder[Byte]
76-
do {
76+
while({
7777
res ++= buf.slice(offset, offset + count)
7878
buf = newBuffer
7979
offset += count
8080
count = stream.read(buf, offset, Random.nextInt(3))
81-
} while (count !== -1)
81+
count !== -1
82+
}) {}
8283

8384
res.result() must be(message.toByteArray)
8485
}

0 commit comments

Comments
 (0)