testAcquireWithoutSetPermits test added

pull/748/head
Nikita 8 years ago
parent 99109604f0
commit 4260a3d38c

@ -13,6 +13,14 @@ import org.redisson.api.RSemaphore;
public class RedissonSemaphoreTest extends BaseConcurrentTest {
@Test
public void testAcquireWithoutSetPermits() throws InterruptedException {
RSemaphore s = redisson.getSemaphore("test");
s.release();
s.release();
s.acquire(2);
}
@Test
public void testTrySetPermits() {
RSemaphore s = redisson.getSemaphore("test");

Loading…
Cancel
Save