Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Sep 1, 2023
1 parent 326a724 commit 532b473
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,7 @@ class _EvalAndBrowseTester {
await tester.pump(safePumpDuration);
await _pressEnter();

try {
expect(expectedResponse, findsOneWidget);
} catch (e) {
const goldenName = 'debug_golden.png';
// In case of unexpected response take golden for troubleshooting.
logStatus('Unexpected response. Taking $goldenName.\n$e');
await expectLater(
find.byType(ConsolePane),
matchesGoldenFile(goldenName),
);
}
expect(expectedResponse, findsOneWidget);
}

Future<void> _pressEnter() async {
Expand Down
12 changes: 12 additions & 0 deletions tool/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,16 @@ pushd "$ROOT_DIR/packages/devtools_extensions"
flutter pub upgrade
popd

pushd "$ROOT_DIR/packages/devtools_extensions/example/app_that_uses_foo"
flutter pub upgrade
popd

pushd "$ROOT_DIR/packages/devtools_extensions/example/foo/packages/foo"
flutter pub upgrade
popd

pushd "$ROOT_DIR/packages/devtools_extensions/example/foo/packages/foo_devtools_extension"
flutter pub upgrade
popd

echo "upgrade.sh: upgraded packages."

0 comments on commit 532b473

Please sign in to comment.