Index: test/utils.dart |
diff --git a/test/utils.dart b/test/utils.dart |
index ebcd0c0522f41bd731acec0894f411cdf2b745c4..89f02af2b9537b44d1b355d31ab638789f057e09 100644 |
--- a/test/utils.dart |
+++ b/test/utils.dart |
@@ -8,6 +8,7 @@ import 'dart:async'; |
import 'dart:collection'; |
import 'package:test/src/backend/declarer.dart'; |
+import 'package:test/src/backend/group.dart'; |
import 'package:test/src/backend/invoker.dart'; |
import 'package:test/src/backend/live_test.dart'; |
import 'package:test/src/backend/metadata.dart'; |
@@ -221,7 +222,7 @@ Future pumpEventQueue([int times=20]) { |
/// Returns a local [LiveTest] that runs [body]. |
LiveTest createTest(body()) { |
var test = new LocalTest("test", new Metadata(), body); |
- var suite = new Suite([test]); |
+ var suite = new Suite(new Group.root([test])); |
return test.load(suite); |
} |
@@ -283,7 +284,7 @@ Future expectTestBlocks(test(), stopBlocking(value)) async { |
} |
/// Runs [body] with a declarer and returns the declared entries. |
-List<SuiteEntry> declare(void body()) { |
+List<GroupEntry> declare(void body()) { |
var declarer = new Declarer()..declare(body); |
- return declarer.build(); |
+ return declarer.build().entries; |
} |