diff --git a/stetho-okhttp/src/test/java/com/facebook/stetho/okhttp/StethoInterceptorTest.java b/stetho-okhttp/src/test/java/com/facebook/stetho/okhttp/StethoInterceptorTest.java index 6671d066..2c02e77d 100644 --- a/stetho-okhttp/src/test/java/com/facebook/stetho/okhttp/StethoInterceptorTest.java +++ b/stetho-okhttp/src/test/java/com/facebook/stetho/okhttp/StethoInterceptorTest.java @@ -60,6 +60,7 @@ public class StethoInterceptorTest { @Rule public PowerMockRule rule = new PowerMockRule(); + private final int HTTP_OK = 200; private NetworkEventReporter mMockEventReporter; private StethoInterceptor mInterceptor; private OkHttpClient mClientWithInterceptor; @@ -96,7 +97,7 @@ public void testHappyPath() throws IOException { Response reply = new Response.Builder() .request(request) .protocol(Protocol.HTTP_1_1) - .code(200) + .code(HTTP_OK) .body(ResponseBody.create(MediaType.parse("text/plain"), originalBodyData)) .build(); Response filteredResponse =