Skip to content

Commit 79d4681

Browse files
fix: corrected assert for error log in Run_FailsToRetrievePdsRecord_LogsError unit test
1 parent 5b4dc22 commit 79d4681

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/UnitTests/NemsSubscriptionServiceTests/ProcessNemsUpdateTests/ProcessNemsUpdateTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ public async Task Run_FailsToRetrievePdsRecord_LogsError()
185185
_loggerMock.Verify(x => x.Log(
186186
LogLevel.Error,
187187
It.IsAny<EventId>(),
188-
It.Is<It.IsAnyType>((v, t) => v != null && v.ToString().Contains("There was a problem validating the NHS number")),
189-
It.IsAny<Exception?>(),
188+
It.Is<It.IsAnyType>((v, t) => v != null && v.ToString().Contains("There was an error processing NEMS update for file")),
189+
It.IsAny<Exception>(),
190190
It.IsAny<Func<It.IsAnyType, Exception?, string>>()),
191191
Times.Once);
192192
}
@@ -576,8 +576,8 @@ public async Task Run_InvalidNhsNumberValidation_CopiesFileToPoisonContainer()
576576
_loggerMock.Verify(x => x.Log(
577577
LogLevel.Error,
578578
It.IsAny<EventId>(),
579-
It.Is<It.IsAnyType>((v, t) => v != null && v.ToString().Contains("There was an error processing NEMS update for file")),
580-
It.IsAny<Exception>(),
579+
It.Is<It.IsAnyType>((v, t) => v != null && v.ToString().Contains("There was a problem validating the NHS number")),
580+
It.IsAny<Exception?>(),
581581
It.IsAny<Func<It.IsAnyType, Exception?, string>>()),
582582
Times.Once);
583583
await fileStream.DisposeAsync();

0 commit comments

Comments
 (0)