0

Actually in order to run my test on github action, i need to manipulate my test to following repo,

Ui Test File: https://github.com/TheReprator/Wipro/tree/mockwebserver/appModules/factList/src/androidTest/kotlin/reprator/wipro/factlist/test

Repo: https://github.com/TheReprator/Wipro

Branch: mockwebserver

My all ui test pass locally with branch(master) but when i run it with github action, all ui test case fails.

Looking forward for a solution.

My issue on github: https://github.com/square/okhttp/issues/6733

Regards,

Vikram Singh

Reprator
  • 2,859
  • 2
  • 32
  • 55

1 Answers1

0

When using mockWebServer.start() you should use mockWebServer.url(path) to give you the url, not hardcode 0 in the URL.

See https://github.com/square/okhttp/tree/master/mockwebserver

  // Start the server.
  server.start();

  // Ask the server for its URL. You'll need this to make HTTP requests.
  HttpUrl baseUrl = server.url("/v1/chat/");
Yuri Schimke
  • 12,435
  • 3
  • 35
  • 69