Skip to content

Commit cd554c8

Browse files
committed
chore(test): fix flaky test
1 parent a3b88ff commit cd554c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/test/java/io/github/zero88/schedulerx/trigger/rule/TimeframeTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import io.github.zero88.schedulerx.TestUtils;
2222
import io.github.zero88.schedulerx.trigger.rule.custom.SimpleDateTimeTimeframe;
23+
import io.vertx.core.json.JsonObject;
2324

2425
import com.fasterxml.jackson.core.JsonProcessingException;
2526
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -109,7 +110,7 @@ void serialize_deserialize_custom_Timeframe() throws JsonProcessingException {
109110
"\"timeZone\":\"Europe/Paris\",\"type\":\"java.util.Date\"}";
110111
final Timeframe<?> timeframe = mapper.readValue(expected, Timeframe.class);
111112
Assertions.assertInstanceOf(SimpleDateTimeTimeframe.class, timeframe);
112-
Assertions.assertEquals(expected, mapper.writeValueAsString(timeframe));
113+
Assertions.assertEquals(new JsonObject(expected), new JsonObject(mapper.writeValueAsString(timeframe)));
113114
}
114115

115116
}

0 commit comments

Comments
 (0)