Skip to content

Commit

Permalink
try port forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
aarsilv committed Oct 23, 2023
1 parent 667be3c commit abc020e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,13 @@ jobs:
api-level: 33
target: google_apis
arch: x86_64
script: make test
script: echo "Emulator started"
- name: Forward mock server port
run: adb forward tcp:4001 tcp:4001
- name: Run tests
uses: ReactiveCircus/android-emulator-runner@v2
with:
api-level: 33
target: google_apis
arch: x86_64
script: make test
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public class EppoClientTest {
private static final String TAG = EppoClientTest.class.getSimpleName();
private static final int TEST_PORT = 4001;

private static final String HOST = "http://10.0.0.2:" + TEST_PORT;
private static final String INVALID_HOST = "http://10.0.0.2:" + (TEST_PORT + 1);
private static final String HOST = "http://localhost:" + TEST_PORT;
private static final String INVALID_HOST = "http://localhost:" + (TEST_PORT + 1);
private WireMockServer mockServer;
private Gson gson = new GsonBuilder()
.registerTypeAdapter(EppoValue.class, new EppoValueAdapter())
Expand Down

0 comments on commit abc020e

Please sign in to comment.