Skip to content

Commit d69fbc7

Browse files
committed
fix: 修复单元测试bug
1 parent f888ce2 commit d69fbc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/io/github/talelin/merak/controller/cms/AdminControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public void removePermissions() throws Exception {
447447
mvc.perform(post("/cms/admin/permission/remove")
448448
.contentType(MediaType.APPLICATION_JSON).content(content))
449449
.andDo(print())
450-
.andExpect(status().isCreated())
450+
.andExpect(status().isOk())
451451
.andExpect(MockMvcResultMatchers.jsonPath("$.message").value("删除权限成功"));
452452
}
453453
}

0 commit comments

Comments
 (0)