Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1024)

Unified Diff: test/command_line_test.dart

Issue 960113004: More fixing tests to make bots happy. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/command_line_test.dart
diff --git a/test/command_line_test.dart b/test/command_line_test.dart
index 8b130b6e68e7c20798ace4c3fe4647bf0c0e34f9..47f817a6eb1efdd893748a4339cb13ea5fbef854 100644
--- a/test/command_line_test.dart
+++ b/test/command_line_test.dart
@@ -9,6 +9,7 @@ import 'dart:convert';
import 'package:path/path.dart' as p;
import 'package:scheduled_test/descriptor.dart' as d;
import 'package:scheduled_test/scheduled_test.dart';
+import 'package:scheduled_test/scheduled_stream.dart';
import 'utils.dart';
@@ -92,9 +93,14 @@ void main() {
d.file("d_good.dart", formattedSource)
]).create();
+ var aBad = p.join("code", "a_bad.dart");
+ var cBad = p.join("code", "c_bad.dart");
+
var process = runFormatterOnDir(["--dry-run"]);
- process.stdout.expect(p.join("code", "a_bad.dart"));
- process.stdout.expect(p.join("code", "c_bad.dart"));
+
+ // The order isn't specified.
+ process.stdout.expect(either(aBad, cBad));
+ process.stdout.expect(either(aBad, cBad));
process.shouldExit();
});
« no previous file with comments | « pubspec.yaml ('k') | test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698