Skip to content

Commit

Permalink
Update NamingMetadataManagerTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorHe1 authored Dec 18, 2024
1 parent 9fb4b1b commit 7670ade
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ void testRemoveInstanceMetadata() {
Optional<InstanceMetadata> instanceMetadata = namingMetadataManager.getInstanceMetadata(service, METADATA_ID);

assertFalse(instanceMetadata.isPresent());

Map<Service, ConcurrentMap<String, InstanceMetadata>> instanceMetadataSnapshot = namingMetadataManager.getInstanceMetadataSnapshot();

assertEquals(0, instanceMetadataSnapshot.size());
}

@Test
Expand Down Expand Up @@ -233,4 +237,4 @@ void testOnEvent() {
namingMetadataManager.onEvent(clientDisconnectEvent);
Mockito.verify(clientDisconnectEvent).getClient();
}
}
}

0 comments on commit 7670ade

Please sign in to comment.