Skip to content
Snippets Groups Projects
Commit 764362e8 authored by zoechi's avatar zoechi
Browse files

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
parent 60c662da
No related branches found
No related tags found
No related merge requests found
......@@ -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)));
}
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment