Skip to content

Commit e5141de

Browse files
Moar
1 parent 1e99e94 commit e5141de

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/e2eIosTest/java/io/appium/java_client/ios/BaseIOSTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import io.appium.java_client.service.local.AppiumDriverLocalService;
2020
import io.appium.java_client.service.local.AppiumServiceBuilder;
21+
import io.appium.java_client.service.local.flags.GeneralServerFlag;
2122
import org.junit.jupiter.api.AfterAll;
2223

2324
import java.time.Duration;
@@ -49,6 +50,7 @@ public static AppiumDriverLocalService startAppiumServer() {
4950
.withIPAddress("127.0.0.1")
5051
.usingPort(PORT)
5152
.withTimeout(SERVER_START_TIMEOUT)
53+
.withArgument(GeneralServerFlag.ALLOW_INSECURE, "*:session_discovery")
5254
.build();
5355
service.start();
5456
return service;

src/e2eIosTest/java/io/appium/java_client/ios/IOSDriverTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public void addCustomCommandTest() {
5757

5858
@Test
5959
public void addCustomCommandWithSessionIdTest() {
60-
driver.addCommand(HttpMethod.POST, "/session/" + driver.getSessionId() + "/appium/capabilities",
61-
"getSessionCapabilities");
62-
final Response getSessionCapabilities = driver.execute("getSessionCapabilities");
63-
assertNotNull(getSessionCapabilities.getSessionId());
60+
driver.addCommand(HttpMethod.GET, "/session/" + driver.getSessionId() + "/appium/settings",
61+
"getSessionSettings");
62+
final Response getSessionSettings = driver.execute("getSessionSettings");
63+
assertNotNull(getSessionSettings.getSessionId());
6464
}
6565

6666
@Test

0 commit comments

Comments
 (0)