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

Commit 32dfd4b

Browse files
committed
FIx failing tests.
1 parent f76e29b commit 32dfd4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/GitHub.InlineReviews.UnitTests/Services/PullRequestSessionManagerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,9 +951,10 @@ IConnectionManager CreateConnectionManager()
951951
{
952952
var connection = Substitute.For<IConnection>();
953953
connection.HostAddress.Returns(HostAddress.Create("https://github.com"));
954+
connection.IsLoggedIn.Returns(true);
954955

955956
var result = Substitute.For<IConnectionManager>();
956-
result.Connections.Returns(new ObservableCollectionEx<IConnection>(new[] { connection }));
957+
result.GetConnection(connection.HostAddress).Returns(connection);
957958
return result;
958959
}
959960

0 commit comments

Comments
 (0)