Changed test to lose lease instead of renewing the lease.
This commit is contained in:
parent
11b0247ae2
commit
4fabc98451
1 changed files with 2 additions and 2 deletions
|
|
@ -108,8 +108,8 @@ public class LeaseManagerIntegrationTest extends LeaseIntegrationTest {
|
||||||
|
|
||||||
KinesisClientLease leaseCopy = leaseManager.getLease(lease.getLeaseKey());
|
KinesisClientLease leaseCopy = leaseManager.getLease(lease.getLeaseKey());
|
||||||
|
|
||||||
leaseManager.renewLease(lease);
|
// lose lease
|
||||||
leaseManager.renewLease(lease);
|
leaseManager.takeLease(lease, "bar");
|
||||||
|
|
||||||
Assert.assertFalse(leaseManager.renewLease(leaseCopy));
|
Assert.assertFalse(leaseManager.renewLease(leaseCopy));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue