Skip to content

Commit 8c5c11a

Browse files
committed
测试优化
1 parent 4869e34 commit 8c5c11a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/ma/luan/yiyan/service/DataServiceTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public void testGetHelpFromRedis(TestContext context) {
3838
vertx.eventBus().send(Key.GET_HELP_FROM_REDIS, null, r1 -> {
3939
if (r1.succeeded()) {
4040
JsonArray array = (JsonArray) r1.result().body();
41-
assertThat(array.getJsonObject(0)
42-
, equalTo(new JsonObject().put("全部", "https://api.gushi.ci/all")));
41+
context.verify(v -> assertThat(array.getJsonObject(0)
42+
, equalTo(new JsonObject().put("全部", "https://api.gushi.ci/all"))));
4343
async.complete();
4444
} else {
4545
context.fail();

0 commit comments

Comments
 (0)