Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvic committed Sep 20, 2024
1 parent 9da4bcf commit f24f5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/serialization/json_decoder_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Commanded.Serialization.JsonDecoderTest do
{:ok, dt, _} = DateTime.from_iso8601("2016-09-20 20:01:02Z")
event = %ExampleEvent{name: "Ben", datetime: dt}

assert JsonSerializer.serialize(event) == @serialized_event_json
assert JsonSerializer.serialize(event) |> Jason.decode!() == Jason.decode!(@serialized_event_json)
end

test "should allow decoding of deserialized value from JSON" do
Expand Down

0 comments on commit f24f5fc

Please sign in to comment.