Index: lib/src/backend/invoker.dart |
diff --git a/lib/src/backend/invoker.dart b/lib/src/backend/invoker.dart |
index 057e704918cc1e64276066992b48eb151c815aa0..147741ffae9aa17265e8394cbc19c7f1ac82af99 100644 |
--- a/lib/src/backend/invoker.dart |
+++ b/lib/src/backend/invoker.dart |
@@ -158,12 +158,12 @@ class Invoker { |
// TODO(nweiz): Make the timeout configurable. |
// TODO(nweiz): Reset this timer whenever the user's code interacts with |
// the library. |
- var timer = new Timer(new Duration(seconds: 30), () { |
+ var timeout = _test.metadata.timeout.apply(new Duration(seconds: 30)); |
+ var timer = new Timer(timeout, () { |
if (liveTest.isComplete) return; |
handleError( |
new TimeoutException( |
- "Test timed out after 30 seconds.", |
- new Duration(seconds: 30))); |
+ "Test timed out after ${niceDuration(timeout)}.", timeout)); |
}); |
addOutstandingCallback(); |