Browse Source

修复测试错误

zhouhao 6 years ago
parent
commit
d3f06132f8

+ 3 - 3
hsweb-system/hsweb-system-authorization/hsweb-system-authorization-starter/src/test/groovy/org/hswebframework/web/authorization/starter/TotpTwoFactorProviderTests.groovy

@@ -26,9 +26,9 @@ class TotpTwoFactorProviderTests extends Specification {
     def "测试totp"() {
         given:
         String id = userService.insert(new SimpleUserEntity(
-                username: "admin",
-                password: "admin",
-                name: "admin"
+                username: "admin2",
+                password: "admin2",
+                name: "admin2"
         ))
         expect:
         !validatorManager.getValidator(id, "", "totp")