Skip to content

Commit

Permalink
cmt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
danh-ld committed Sep 22, 2023
1 parent d7e61f1 commit d64e4c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ jobs:
fi
- name: "Run Flutter Driver tests"
run: flutter drive --target=test_driver/app.dart -d $UUID --observatory-port=9200
run: flutter drive --target=test_driver/app.dart -d $UUID
# run: sh flutter_drive.sh $UUID
2 changes: 1 addition & 1 deletion flutter_drive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rm -rf pipe-${uuid}
mkfifo pipe-${uuid}

# run flutter driver and output to named pipe
flutter drive --target=test_driver/app.dart -d ${uuid} --observatory-port=9200 > pipe-${uuid} &
flutter drive --target=test_driver/app.dart -d ${uuid} > pipe-${uuid} &

# savw pid of flutter driver
flutter_pid=$!
Expand Down
2 changes: 2 additions & 0 deletions test_driver/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ void main() {

// Connect to the Flutter driver before running any tests.
setUpAll(() async {
print('danhdanh-setUpAll');
driver =
await FlutterDriver.connect(timeout: const Duration(seconds: 30));
print('danhdanh-setUpAll-connected');
});

// Close the connection to the driver after the tests have completed.
Expand Down

0 comments on commit d64e4c8

Please sign in to comment.