File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
client/src/test/java/io/split/client Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments