Skip to content

Commit

Permalink
test: 解决 mvn test 过程第二个类 code 消费不到问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cdk8s-zelda committed Nov 1, 2019
1 parent e4cddfc commit 49c23d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void run(ApplicationArguments args) {
accessTokenRedisService.set("AT-102-uUCkO2NgITHWJSD16g89C9loMwCVSQqh", getAccessToken(), oauthProperties.getAccessTokenMaxTimeToLiveInSeconds());
refreshTokenRedisService.set("RT-103-zIYUBA0ddql5cyYGEdpmPcRJH63hOVpQ", getRefreshToken(), oauthProperties.getRefreshTokenMaxTimeToLiveInSeconds());
codeRedisService.set("OC-106-uUddPxoWCEa4NBO5GaVIRJOTZLlWbHNr", getCode(), oauthProperties.getCodeMaxTimeToLiveInSeconds());
codeRedisService.set("OC-107-uUddPxoWCEa4NBO5GaVIRJOTZLlWbHNr", getCode(), oauthProperties.getCodeMaxTimeToLiveInSeconds());

log.info("=================================预设 Redis 测试数据 End=================================");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class AuthorizationCodeByHeaderTest {

private static final String ACCESS_TOKEN = "AT-102-uUCkO2NgITHWJSD16g89C9loMwCVSQqh";
private static final String REFRESH_TOKEN = "RT-103-zIYUBA0ddql5cyYGEdpmPcRJH63hOVpQ";
private static final String CODE = "OC-106-uUddPxoWCEa4NBO5GaVIRJOTZLlWbHNr";
private static final String CODE = "OC-107-uUddPxoWCEa4NBO5GaVIRJOTZLlWbHNr";

private static final String USERNAME = "admin";
private static final String PASSWORD = "123456";
Expand Down

0 comments on commit 49c23d3

Please sign in to comment.