From da3cace84dbd9b34cfec6b632d47cf1b1883b0a5 Mon Sep 17 00:00:00 2001 From: malinajirka Date: Wed, 11 Nov 2020 12:41:30 +0100 Subject: [PATCH] Fix issues in MockingInterceptor.kt --- .../java/org/wordpress/android/support/MockingInterceptor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/src/androidTest/java/org/wordpress/android/support/MockingInterceptor.kt b/WordPress/src/androidTest/java/org/wordpress/android/support/MockingInterceptor.kt index d16bbd809a3a..a22ddf0dfbb6 100644 --- a/WordPress/src/androidTest/java/org/wordpress/android/support/MockingInterceptor.kt +++ b/WordPress/src/androidTest/java/org/wordpress/android/support/MockingInterceptor.kt @@ -12,8 +12,8 @@ class MockingInterceptor : Interceptor { val request = chain.request() // Redirect all WordPress.com API requests to local mock server - if (request.url().host() == "public-api.wordpress.com") { - val newUrl = request.url().newBuilder() + if (request.url.host == "public-api.wordpress.com") { + val newUrl = request.url.newBuilder() .scheme("http") .host("localhost") .port(BaseTest.WIREMOCK_PORT)