Skip to content

Commit

Permalink
Fix StructUtilsSpec call to toByteArray
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Sep 30, 2024
1 parent 1ea86e7 commit 78b521d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/src/test/scala/scalapb/StructUtilsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class StructUtilsSpec extends AnyFlatSpec with Matchers with EitherValues {
Struct(
Map(
"optional_bytes" -> Value(
Value.Kind.StringValue(new String(Base64.getEncoder.encode(someBytesValue.toByteArray)))
Value.Kind.StringValue(new String(Base64.getEncoder.encode(someBytesValue.toByteArray())))
)
)
)
Expand Down Expand Up @@ -213,7 +213,7 @@ class StructUtilsSpec extends AnyFlatSpec with Matchers with EitherValues {
Map(
"optional_bytes" -> Value(
Value.Kind.StringValue(
new String(Base64.getEncoder.encode(someBytesValue.toByteArray))
new String(Base64.getEncoder.encode(someBytesValue.toByteArray()))
)
)
)
Expand Down

0 comments on commit 78b521d

Please sign in to comment.