Skip to content

Commit

Permalink
Fix for Scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoworko committed Oct 22, 2024
1 parent f7daf5c commit 1464ffa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import pl.touk.nussknacker.test.NuRestAssureMatchers
import pl.touk.nussknacker.test.base.it.NuItTest
import pl.touk.nussknacker.test.config.{WithBusinessCaseRestAssuredUsersExtensions, WithDesignerConfig}

import scala.util.Try

trait WithScenarioActivitySpecAsserts
extends AnyFreeSpecLike
with NuItTest
Expand Down Expand Up @@ -156,7 +158,7 @@ trait WithScenarioActivitySpecAsserts
)
)
if (fileIdPresent) {
response.extractString("activities[1].attachment.file.id").toLongOption
Try(response.extractString("activities[1].attachment.file.id").toLong).toOption
} else {
None
}
Expand Down

0 comments on commit 1464ffa

Please sign in to comment.