Skip to content

Commit

Permalink
Use correct seed for all Scala versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-ali committed Apr 25, 2024
1 parent 722d56b commit 6931118
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object PropertyDogFoodTest extends IOSuite {
case LoggedEvent.Error(msg) => msg
}
exists(errorLogs) { log =>
val seed = "J-6MoClT2HLi3XSwXsymoeOiLOD4mQUCr1Ko6WIlREL="
val seed = Meta.FailedChecks.initialSeed.toBase64
// Go into software engineering they say
// Learn how to make amazing algorithms
// Build robust and deterministic software
Expand All @@ -38,9 +38,7 @@ object PropertyDogFoodTest extends IOSuite {

val expectedMessage =
s"""Property test failed on try $attempt with seed Seed.fromBase64("$seed") and input $value"""
expect(log.contains(expectedMessage)) && expect.same(
seed,
Meta.FailedChecks.initialSeed.toBase64)
expect(log.contains(expectedMessage))
}
}
}
Expand Down

0 comments on commit 6931118

Please sign in to comment.