diff --git a/src/test/java/ma/luan/yiyan/service/DataServiceTest.java b/src/test/java/ma/luan/yiyan/service/DataServiceTest.java index 6570655..e4bd8b7 100644 --- a/src/test/java/ma/luan/yiyan/service/DataServiceTest.java +++ b/src/test/java/ma/luan/yiyan/service/DataServiceTest.java @@ -38,8 +38,8 @@ public void testGetHelpFromRedis(TestContext context) { vertx.eventBus().send(Key.GET_HELP_FROM_REDIS, null, r1 -> { if (r1.succeeded()) { JsonArray array = (JsonArray) r1.result().body(); - assertThat(array.getJsonObject(0) - , equalTo(new JsonObject().put("全部", "https://api.gushi.ci/all"))); + context.verify(v -> assertThat(array.getJsonObject(0) + , equalTo(new JsonObject().put("全部", "https://api.gushi.ci/all")))); async.complete(); } else { context.fail();