Index: pkg/scheduled_test/test/descriptor/async_test.dart |
diff --git a/pkg/scheduled_test/test/descriptor/async_test.dart b/pkg/scheduled_test/test/descriptor/async_test.dart |
index b35718fa15dac27dfe947e0aeb985d8e02b6f1df..1726345cdae091efca0ffdf1b6663f30087d01cf 100644 |
--- a/pkg/scheduled_test/test/descriptor/async_test.dart |
+++ b/pkg/scheduled_test/test/descriptor/async_test.dart |
@@ -126,7 +126,7 @@ void main() { |
test('test', () { |
scheduleSandbox(); |
- expect(d.async(new Future.immediate(d.file('name.txt'))) |
+ expect(d.async(new Future.value(d.file('name.txt'))) |
.load('path').toList(), |
throwsA(equals("AsyncDescriptors don't support load()."))); |
}); |
@@ -136,7 +136,7 @@ void main() { |
test('test', () { |
scheduleSandbox(); |
- expect(d.async(new Future.immediate(d.file('name.txt'))).read().toList(), |
+ expect(d.async(new Future.value(d.file('name.txt'))).read().toList(), |
throwsA(equals("AsyncDescriptors don't support read()."))); |
}); |
}); |