diff --git a/test/gen_test.dart b/test/gen_test.dart index 9e4ec7e..4a24802 100644 --- a/test/gen_test.dart +++ b/test/gen_test.dart @@ -26,6 +26,6 @@ void main() { expectLine(stdout, ['fvm_puby_test', 'fvm dart $argString']); expectLine(stdout, [path.join('fvm_puby_test', 'example'), 'Skip']); }, - timeout: Timeout.factor(1.5), + timeout: Timeout(const Duration(seconds: 120)), ); } diff --git a/test/run_test.dart b/test/run_test.dart index 2176ff9..4981676 100644 --- a/test/run_test.dart +++ b/test/run_test.dart @@ -5,21 +5,25 @@ import 'package:path/path.dart' as path; import 'test_utils.dart'; void main() { - test('puby run', () async { - final result = await testCommand( - ['run', 'custom_lint'], - projects: defaultProjects(devDependencies: {'custom_lint: any'}), - link: true, - ); - final stdout = result.stdout; + test( + 'puby run', + () async { + final result = await testCommand( + ['run', 'custom_lint'], + projects: defaultProjects(devDependencies: {'custom_lint: any'}), + link: true, + ); + final stdout = result.stdout; - expect(result.exitCode, ExitCode.success.code); + expect(result.exitCode, ExitCode.success.code); - expectLine(stdout, ['dart_puby_test', 'dart run custom_lint']); - expectLine(stdout, [path.join('dart_puby_test', 'example'), 'Skip']); - expectLine(stdout, ['flutter_puby_test', 'dart run custom_lint']); - expectLine(stdout, [path.join('flutter_puby_test', 'example'), 'Skip']); - expectLine(stdout, ['fvm_puby_test', 'fvm dart run custom_lint']); - expectLine(stdout, [path.join('fvm_puby_test', 'example'), 'Skip']); - }); + expectLine(stdout, ['dart_puby_test', 'dart run custom_lint']); + expectLine(stdout, [path.join('dart_puby_test', 'example'), 'Skip']); + expectLine(stdout, ['flutter_puby_test', 'dart run custom_lint']); + expectLine(stdout, [path.join('flutter_puby_test', 'example'), 'Skip']); + expectLine(stdout, ['fvm_puby_test', 'fvm dart run custom_lint']); + expectLine(stdout, [path.join('fvm_puby_test', 'example'), 'Skip']); + }, + timeout: Timeout(const Duration(seconds: 120)), + ); }