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

Unified Diff: test/runner/pause_after_load_test.dart

Issue 1654183003: Fix tests that use a 0-length timeout. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 11 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 | « no previous file | test/runner/runner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/pause_after_load_test.dart
diff --git a/test/runner/pause_after_load_test.dart b/test/runner/pause_after_load_test.dart
index a67ea855fed7759109a56eeacd7835a705f76dee..91969ba4b6c86717407ef9ce05bb0f14b39613d7 100644
--- a/test/runner/pause_after_load_test.dart
+++ b/test/runner/pause_after_load_test.dart
@@ -241,12 +241,16 @@ void main() {
test("disables timeouts", () {
d.file("test.dart", """
+import 'dart:async';
+
import 'package:test/test.dart';
void main() {
print('loaded test 1!');
- test("success", () {}, timeout: new Timeout(Duration.ZERO));
+ test("success", () async {
+ await new Future.delayed(Duration.ZERO);
+ }, timeout: new Timeout(Duration.ZERO));
}
""").create();
« no previous file with comments | « no previous file | test/runner/runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698