diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java index 9bcaf9ba6..af9e9dc29 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java @@ -37,7 +37,7 @@ public class NetworkRecordingModuleMock extends ReactContextBaseJavaModule { public int mLastRequestId; public boolean mAbortedRequest; - private final boolean mCompleteRequest; + private boolean mCompleteRequest; public NetworkRecordingModuleMock(ReactApplicationContext reactContext) { this(reactContext, true); @@ -116,6 +116,10 @@ public class NetworkRecordingModuleMock extends ReactContextBaseJavaModule { return true; } + public void setCompleteRequest(boolean completeRequest) { + mCompleteRequest = completeRequest; + } + private void onDataReceived(int requestId, String data) { WritableArray args = Arguments.createArray(); args.pushInt(requestId);