Skip to content

Commit

Permalink
Fix test case. Release 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexxiyang committed Nov 13, 2018
1 parent b08d58f commit 743584f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

<developers>
<developer>
<id>alexxiyang</id>
<id>alexxiyang</id>
<name>Alex Yang</name>
<email>alexxiyang@gmail.com</email>
<timezone>GMT-7</timezone>
Expand Down Expand Up @@ -172,7 +172,7 @@
</activation>

<properties>
<gpg.keyname>4DD0EC63</gpg.keyname> <!-- GPG Key ID to use for signing -->
<gpg.keyname>D688E942</gpg.keyname> <!-- GPG Key ID to use for signing -->
<release.username>alexxiyang</release.username>
</properties>

Expand Down
5 changes: 3 additions & 2 deletions src/test/java/org/crazycake/shiro/RedisCacheTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,17 @@ public void testPutNull() {
}

@Test
public void testPutIdeal() {
public void testPut() {
doPutAuth(redisCache, user1);
FakeAuth fakeAuth = redisCache.get(user1);
assertAuthEquals(fakeAuth, turnUserToFakeAuth((UserInfo)user1.getPrimaryPrincipal()));
}

@Test
public void testSize() {
public void testSize() throws InterruptedException {
doPutAuth(redisCache, user1);
doPutAuth(redisCache, user2);
Thread.sleep(200);
assertEquals(redisCache.size(), 2);
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/shiro-standalone.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
redisManager.host = 127.0.0.1:6379
redisSessionDAO.expire = 30
cacheManager.expire = 30
redisSessionDAO.expire = 3000
cacheManager.expire = 3000
cacheManager.principalIdFieldName = userId

0 comments on commit 743584f

Please sign in to comment.