From 9aa940e43efbf3760f669813f30122b26ec32ab8 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Fri, 26 Apr 2024 11:31:38 -0400 Subject: [PATCH] tests: update check for patch install in patch e2e tests --- scripts/patch_e2e.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/patch_e2e.sh b/scripts/patch_e2e.sh index 4891cc24..5891f004 100755 --- a/scripts/patch_e2e.sh +++ b/scripts/patch_e2e.sh @@ -53,10 +53,9 @@ shorebird patch android -v # Run the app on Android and ensure that the original print statement is printed. while IFS= read line; do - if [[ "$line" == *"I flutter : hello world"* ]]; then - sleep 5 # Wait for the patch to be installed. + if [[ "$line" == *"Patch 1 successfully installed"* ]]; then adb kill-server - echo "✅ 'hello world' was printed" + echo "✅ Patch 1 successfully installed" break fi done < <(shorebird preview --release-version 0.1.0+1 --app-id $APP_ID --platform android)