Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 24309ef

Browse files
committed
Fix failing tests.
1 parent 95cf41c commit 24309ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/UnitTests/GitHub.App/ViewModels/GitHubPane/GitHubPaneViewModelTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public async Task LoggedOutShownWhenNotLoggedInToEnterprise()
9494
public async Task NavigatorShownWhenRepositoryIsAGitHubRepo()
9595
{
9696
var te = CreateTeamExplorerServiceHolder(ValidGitHubRepo);
97-
var target = CreateTarget(teServiceHolder: te);
97+
var cm = CreateConnectionManager("https://github.com");
98+
var target = CreateTarget(teServiceHolder: te, connectionManager: cm);
9899

99100
await Initialize(target);
100101

@@ -105,7 +106,8 @@ public async Task NavigatorShownWhenRepositoryIsAGitHubRepo()
105106
public async Task NavigatorShownWhenRepositoryIsAnEnterpriseRepo()
106107
{
107108
var te = CreateTeamExplorerServiceHolder(ValidEnterpriseRepo);
108-
var target = CreateTarget(teServiceHolder: te);
109+
var cm = CreateConnectionManager("https://enterprise.com");
110+
var target = CreateTarget(teServiceHolder: te, connectionManager: cm);
109111

110112
await Initialize(target);
111113

@@ -249,6 +251,7 @@ static void AddConnection(IConnectionManager connectionManager, string address)
249251
var hostAddress = HostAddress.Create(address);
250252
var connections = (ObservableCollectionEx<IConnection>)connectionManager.Connections;
251253
connection.HostAddress.Returns(hostAddress);
254+
connection.IsLoggedIn.Returns(true);
252255
connectionManager.GetConnection(hostAddress).Returns(connection);
253256
connections.Add(connection);
254257
}

0 commit comments

Comments
 (0)