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

Commit 31b416a

Browse files
committed
Don't assert NotFoundException message
1 parent 9ecdd2c commit 31b416a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/UnitTests/GitHub.App/Services/PullRequestServiceTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ public async void MergeBaseNotAvailable_ThrowsNotFoundException()
6464
var headSha = "headSha";
6565
var mergeBaseSha = null as string;
6666
var head = false;
67-
var expectMessage = $"Couldn't find merge base. Please check your network connection and try again.";
68-
var mergeBaseException = new NotFoundException(expectMessage);
67+
var mergeBaseException = new NotFoundException();
6968

7069
var ex = await Assert.ThrowsAsync<NotFoundException>(() => ExtractFile(baseSha, baseFileContent, headSha, headFileContent, mergeBaseSha, mergeBaseFileContent,
7170
fileName, head, Encoding.UTF8, mergeBaseException: mergeBaseException));
72-
Assert.Equal(expectMessage, ex.Message);
7371
}
7472

7573
[Fact]

0 commit comments

Comments
 (0)