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

Unified Diff: test/backend/invoker_test.dart

Issue 1256833003: Add Timeout.none. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Fix invoker_test. Created 5 years, 5 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 | « lib/src/runner/parse_metadata.dart ('k') | test/runner/parse_metadata_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/backend/invoker_test.dart
diff --git a/test/backend/invoker_test.dart b/test/backend/invoker_test.dart
index 2f23c7ff69eed5ac0f8d792c924d8d69a73062a5..1cc014db837dcbe6687644ad2be140d141539621 100644
--- a/test/backend/invoker_test.dart
+++ b/test/backend/invoker_test.dart
@@ -641,6 +641,20 @@ void main() {
async.elapse(new Duration(seconds: 15));
});
});
+
+ test("a test with Timeout.none never times out", () {
+ new FakeAsync().run((async) {
+ var liveTest = _localTest(() {
+ Invoker.current.addOutstandingCallback();
+ }, metadata: new Metadata(timeout: Timeout.none)).load(suite);
+
+ expectStates(liveTest, [const State(Status.running, Result.success)]);
+
+ liveTest.run();
+ async.elapse(new Duration(hours: 10));
+ expect(liveTest.state.status, equals(Status.running));
+ });
+ });
});
group("waitForOutstandingCallbacks:", () {
« no previous file with comments | « lib/src/runner/parse_metadata.dart ('k') | test/runner/parse_metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698