Skip to content

Commit

Permalink
✅ Update JopiterRestaurantClientTest
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColman committed Jan 10, 2024
1 parent c63da3c commit 1b226b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class JopiterRestaurantClientTest : FunSpec({
}

test("Can parse current production response") {
val client = JopiterRestaurantClient("https://v4.backend.jopiter.app")
val client = JopiterRestaurantClient("https://persephone.jopiter.app")
client.fetchRestaurants().shouldBeSuccess()
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@ class JopiterRestaurantClientTest : FunSpec({
}

test("Parses any output from production environment") {
val client = JopiterRestaurantClient("https://v4.backend.jopiter.app")
val client = JopiterRestaurantClient("https://persephone.jopiter.app")
(1..30).toList().forAtLeast(10) {
client.fetchItems(it).shouldBeSuccess()
}
Expand All @@ -127,7 +127,7 @@ private fun MockServerClient.prepareTimeout() =
`when`(request()).respond(response().withDelay(seconds(4)))

private fun MockServerClient.prepareWithJopiterOpenAPI() =
upsert(openAPIExpectation("https://v4.backend.jopiter.app/api/v1/docs.yaml"))
upsert(openAPIExpectation("https://persephone.jopiter.app/api/v1/docs.yaml"))

// FIXME couldn't manage to use OpenAPI specification for this with mockserver
private fun MockServerClient.prepareSuccessItemsResponse() =
Expand Down

0 comments on commit 1b226b3

Please sign in to comment.