Skip to content

Commit

Permalink
Fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspavlin committed Jul 14, 2021
1 parent 7f9812d commit f530499
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class VaccinationRouteTest : ServerTestBase() {

@Suppress("LongMethod") // This is test, it is ok here
@Test
@Suppress("LongMethod")
fun `test vaccination flow`() = withTestApplication {
// verify that only authorized users can access vaccination data
handleRequest(HttpMethod.Get, "${Routes.vaccination}?id=${patient1.id}").run {
Expand Down Expand Up @@ -165,7 +164,7 @@ class VaccinationRouteTest : ServerTestBase() {
}.run {
expectStatus(HttpStatusCode.OK)
val output = receive<VaccinationDetailDtoOut>()
assertEquals(vaccinationId, output.vaccinationId)
assertEquals(vaccinationFirstDoseId, output.vaccinationId)
}
}
}

0 comments on commit f530499

Please sign in to comment.