Skip to content

Commit 510a0be

Browse files
committed
Fix StructUtilsSpec call to toByteArray
1 parent 160b8ba commit 510a0be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/src/test/scala/scalapb/StructUtilsSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class StructUtilsSpec extends AnyFlatSpec with Matchers with EitherValues {
7878
Struct(
7979
Map(
8080
"optional_bytes" -> Value(
81-
Value.Kind.StringValue(new String(Base64.getEncoder.encode(someBytesValue.toByteArray)))
81+
Value.Kind.StringValue(new String(Base64.getEncoder.encode(someBytesValue.toByteArray())))
8282
)
8383
)
8484
)
@@ -213,7 +213,7 @@ class StructUtilsSpec extends AnyFlatSpec with Matchers with EitherValues {
213213
Map(
214214
"optional_bytes" -> Value(
215215
Value.Kind.StringValue(
216-
new String(Base64.getEncoder.encode(someBytesValue.toByteArray))
216+
new String(Base64.getEncoder.encode(someBytesValue.toByteArray()))
217217
)
218218
)
219219
)

0 commit comments

Comments
 (0)