Skip to content

Commit 145bc4f

Browse files
Add flutter system port
1 parent a731668 commit 145bc4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/e2eFlutterTest/java/io/appium/java_client/android/BaseFlutterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public static void beforeClass() {
5050
@BeforeEach
5151
void startSession() throws MalformedURLException {
5252
FlutterDriverOptions flutterOptions = new FlutterDriverOptions()
53-
.setFlutterServerLaunchTimeout(Duration.ofSeconds(30))
53+
.setFlutterServerLaunchTimeout(Duration.ofMinutes(2))
54+
.setFlutterSystemPort(9999)
5455
.setFlutterElementWaitTimeout(Duration.ofSeconds(3));
5556
if (IS_ANDROID) {
5657
driver = new FlutterAndroidDriver(service.getUrl(), flutterOptions
57-
.setFlutterSystemPort(9999)
5858
.setUiAutomator2Options(new UiAutomator2Options()
5959
.setApp(System.getProperty("flutterApp"))
6060
.eventTimings())

0 commit comments

Comments
 (0)