From 764362e8ba721c5493de64f96a869708f7b15cb8 Mon Sep 17 00:00:00 2001
From: zoechi <gzoechi@gmail.com>
Date: Sun, 19 Apr 2015 17:36:03 +0200
Subject: [PATCH] only constant values can be used in annotations, `new` is
 invalid here in the 2nd case it's not necessary but doesn't hurt either

---
 README.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index c2717768..f3f1e297 100644
--- a/README.md
+++ b/README.md
@@ -365,7 +365,7 @@ can be configured on a per-test, -group, or -suite basis. To change the timeout
 for a test suite, put a `@Timeout` annotation at the top of the file:
 
 ```dart
-@Timeout(new Duration(seconds: 45))
+@Timeout(const Duration(seconds: 45))
 
 import "package:test/test.dart";
 
@@ -391,7 +391,7 @@ void main() {
     test("even slower test", () {
       // ...
     }, timeout: new Timeout.factor(2))
-  }, timeout: new Timeout(new Duration(minutes: 1)));
+  }, timeout: new Timeout(const Duration(minutes: 1)));
 }
 ```
 
-- 
GitLab