SLING-5298 : instance i2 was not properly closed after this test - which leaks into other tests, if only in the log files

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1729369 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/sling/discovery/impl/DiscoveryWithSyncTokenTest.java b/src/test/java/org/apache/sling/discovery/impl/DiscoveryWithSyncTokenTest.java
index a42c43a..5fd35b6 100644
--- a/src/test/java/org/apache/sling/discovery/impl/DiscoveryWithSyncTokenTest.java
+++ b/src/test/java/org/apache/sling/discovery/impl/DiscoveryWithSyncTokenTest.java
@@ -73,6 +73,7 @@
         b2.setDebugName("i2").useRepositoryOf(i1);
         b2.setConnectorPingInterval(1).setMinEventDelay(1).setConnectorPingTimeout(60);
         VirtualInstance i2 = b2.build();
+        instances.add(i2);
         
         i1.heartbeatsAndCheckView();
         i2.heartbeatsAndCheckView();