Skip to content

Commit

Permalink
Merge pull request #149 from Fabszn/fix_test
Browse files Browse the repository at this point in the history
fix test
  • Loading branch information
Fabszn authored Apr 3, 2024
2 parents 3bf3ac9 + ef674d8 commit 057c8e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion httpEngine/src/test/resources/voxxrin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"capacityFillingRatio": 0.5,
"recordedAt": "2024-04-17T06:57:00Z"
"recordedAt": "2024-04-17T06:57:57Z"
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class JsonParserTest extends AnyFunSuite {
case Left(err) => fail(err.getMessage)
case Right(r) => {

assert(r.recordedAt == ZonedDateTime.parse("2024-04-17T06:57:00Z"))
assert(r.recordedAt == "2024-04-17T06:57:57Z")
assert(r.capacityFillingRatio == 0.5f)

}
Expand All @@ -107,7 +107,7 @@ class JsonParserTest extends AnyFunSuite {
val msgJson: String = source.mkString
source.close()

val ref = VoxxrinJsonBody(0.5f, ZonedDateTime.parse("2024-04-17T06:57:00Z").toString)
val ref = VoxxrinJsonBody(0.5f, ZonedDateTime.parse("2024-04-17T06:57:57Z").toString)

val result: Either[circe.Error, VoxxrinJsonBody] = decode[VoxxrinJsonBody](msgJson)

Expand Down

0 comments on commit 057c8e3

Please sign in to comment.