use the actual unique id to compare connection (#17229)

* use the actual unique id to compare connection

* fix test error and pr comments
This commit is contained in:
Alan Ren
2021-10-04 15:24:09 -07:00
committed by GitHub
parent 32b912c37e
commit c20ed1bd9b
2 changed files with 3 additions and 19 deletions

View File

@@ -251,6 +251,7 @@ suite('SQL ConnectionStatusManager tests', () => {
newConnection.options['databaseDisplayName'] = newConnection.databaseName;
connections.addConnection(newConnection, 'test_uri_1');
connections.addConnection(newConnection, 'test_uri_2');
newConnection = new ConnectionProfile(capabilitiesService, newConnection);
// Get the connections and verify that the duplicate is only returned once
let activeConnections = connections.getActiveConnectionProfiles();