diff --git a/pkgs/native_assets_builder/test/build_runner/build_runner_failure_test.dart b/pkgs/native_assets_builder/test/build_runner/build_runner_failure_test.dart index ce1130ba5..b15331721 100644 --- a/pkgs/native_assets_builder/test/build_runner/build_runner_failure_test.dart +++ b/pkgs/native_assets_builder/test/build_runner/build_runner_failure_test.dart @@ -66,7 +66,7 @@ void main() async { expect(fullLog, contains('To reproduce run:')); final reproCommand = fullLog .split('\n') - .skipWhile((l) => l != 'To reproduce run:') + .skipWhile((l) => !l.contains('To reproduce run:')) .skip(1) .first; final reproResult =