Skip to content

Commit 9d8dd47

Browse files
Travis fix
1 parent bed5bfd commit 9d8dd47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/test/java/io/split/client/ApiKeyCounterTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public synchronized void testAddingNonExistingToken() {
7474
@Test
7575
public synchronized void testFactoryInstances() {
7676
try {
77+
ApiKeyCounter.getApiKeyCounterInstance().clearApiKeys();
7778
ApiKeyCounter.getApiKeyCounterInstance().add(FIRST_KEY);
7879
ApiKeyCounter.getApiKeyCounterInstance().add(FIRST_KEY);
7980
ApiKeyCounter.getApiKeyCounterInstance().add(FIRST_KEY);
@@ -83,6 +84,7 @@ public synchronized void testFactoryInstances() {
8384
Map<String, Long> factoryInstances = ApiKeyCounter.getApiKeyCounterInstance().getFactoryInstances();
8485
Assert.assertEquals(2, factoryInstances.size());
8586
Assert.assertEquals(3, factoryInstances.get(FIRST_KEY).intValue());
87+
Assert.assertEquals(2, factoryInstances.get(SECOND_KEY).intValue());
8688
}
8789
finally {
8890
ApiKeyCounter.getApiKeyCounterInstance().clearApiKeys();

0 commit comments

Comments
 (0)