From c3a091477ce84844e6195f37e6d4aab581aa9a01 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 29 Jun 2020 08:57:54 +0800 Subject: [PATCH] test: fix failing tests following change in a09d3f65e44495e5a4eb5649ac8ebf747177d377 --- .../org/gotson/komga/interfaces/rest/BookControllerTest.kt | 6 +++--- .../gotson/komga/interfaces/rest/SeriesControllerTest.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/BookControllerTest.kt b/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/BookControllerTest.kt index 36d33f6c..fd9bfb2e 100644 --- a/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/BookControllerTest.kt +++ b/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/BookControllerTest.kt @@ -644,7 +644,7 @@ class BookControllerTest( contentType = MediaType.APPLICATION_JSON content = jsonString }.andExpect { - status { isOk } + status { isNoContent } } val metadata = bookMetadataRepository.findById(bookId) @@ -722,7 +722,7 @@ class BookControllerTest( contentType = MediaType.APPLICATION_JSON content = jsonString }.andExpect { - status { isOk } + status { isNoContent } } val updatedMetadata = bookMetadataRepository.findById(bookId) @@ -774,7 +774,7 @@ class BookControllerTest( contentType = MediaType.APPLICATION_JSON content = jsonString }.andExpect { - status { isOk } + status { isNoContent } } val metadata = bookMetadataRepository.findById(bookId) diff --git a/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/SeriesControllerTest.kt b/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/SeriesControllerTest.kt index 99cf2962..5663a927 100644 --- a/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/SeriesControllerTest.kt +++ b/komga/src/test/kotlin/org/gotson/komga/interfaces/rest/SeriesControllerTest.kt @@ -402,7 +402,7 @@ class SeriesControllerTest( contentType = MediaType.APPLICATION_JSON content = jsonString }.andExpect { - status { isOk } + status { isNoContent } } val updatedMetadata = seriesMetadataRepository.findById(createdSeries.id)