Skip to content

Commit 743584f

Browse files
committed
Fix test case. Release 3.2.0
1 parent b08d58f commit 743584f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
<developers>
8787
<developer>
88-
<id>alexxiyang</id>
88+
<id>alexxiyang</id>
8989
<name>Alex Yang</name>
9090
<email>[email protected]</email>
9191
<timezone>GMT-7</timezone>
@@ -172,7 +172,7 @@
172172
</activation>
173173

174174
<properties>
175-
<gpg.keyname>4DD0EC63</gpg.keyname> <!-- GPG Key ID to use for signing -->
175+
<gpg.keyname>D688E942</gpg.keyname> <!-- GPG Key ID to use for signing -->
176176
<release.username>alexxiyang</release.username>
177177
</properties>
178178

src/test/java/org/crazycake/shiro/RedisCacheTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,17 @@ public void testPutNull() {
8989
}
9090

9191
@Test
92-
public void testPutIdeal() {
92+
public void testPut() {
9393
doPutAuth(redisCache, user1);
9494
FakeAuth fakeAuth = redisCache.get(user1);
9595
assertAuthEquals(fakeAuth, turnUserToFakeAuth((UserInfo)user1.getPrimaryPrincipal()));
9696
}
9797

9898
@Test
99-
public void testSize() {
99+
public void testSize() throws InterruptedException {
100100
doPutAuth(redisCache, user1);
101101
doPutAuth(redisCache, user2);
102+
Thread.sleep(200);
102103
assertEquals(redisCache.size(), 2);
103104
}
104105

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
redisManager.host = 127.0.0.1:6379
2-
redisSessionDAO.expire = 30
3-
cacheManager.expire = 30
2+
redisSessionDAO.expire = 3000
3+
cacheManager.expire = 3000
44
cacheManager.principalIdFieldName = userId

0 commit comments

Comments
 (0)