Skip to content

Commit 44f6ed5

Browse files
committed
correcting getPersonService unit test
1 parent cc27eb0 commit 44f6ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetPersonServiceTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ internal class GetPersonServiceTest(
138138

139139
it("returns error when invalid hmppsId is provided") {
140140
val invalidHmppsId = "invalid_id"
141-
val expectedError = UpstreamApiError(UpstreamApi.NOMIS, UpstreamApiError.Type.BAD_REQUEST, "Invalid HMPPS ID: $hmppsId")
141+
val expectedError = UpstreamApiError(UpstreamApi.NOMIS, UpstreamApiError.Type.BAD_REQUEST, "Invalid HMPPS ID: $invalidHmppsId")
142142
val result = getPersonService.getPrisoner(invalidHmppsId)
143143

144144
result.data.shouldBe(null)

0 commit comments

Comments
 (0)