Skip to content

Commit

Permalink
测试优化
Browse files Browse the repository at this point in the history
  • Loading branch information
xenv committed Feb 12, 2019
1 parent 4869e34 commit 8c5c11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/ma/luan/yiyan/service/DataServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8c5c11a

Please sign in to comment.