Index: utils/tests/pub/io_test.dart |
diff --git a/utils/tests/pub/io_test.dart b/utils/tests/pub/io_test.dart |
index 585d068b2e1127db5bd4e7a70c0ee8cc01ebd786..7ca3176a5fd71dd49b0dbb2612a3f512d2a3cf98 100644 |
--- a/utils/tests/pub/io_test.dart |
+++ b/utils/tests/pub/io_test.dart |
@@ -190,17 +190,17 @@ void testExistencePredicate(String name, bool predicate(String path), |
group(name, () { |
test('returns $forFile for a file', () { |
expect(withTempDir((temp) { |
- var path = path.join(temp, "test.txt"); |
- writeTextFile(path, "contents"); |
- expect(predicate(path), equals(forFile)); |
+ var file = path.join(temp, "test.txt"); |
+ writeTextFile(file, "contents"); |
+ expect(predicate(file), equals(forFile)); |
}), completes); |
}); |
test('returns $forDirectory for a directory', () { |
expect(withTempDir((temp) { |
- var path = path.join(temp, "dir"); |
- createDir(path); |
- expect(predicate(path), equals(forDirectory)); |
+ var file = path.join(temp, "dir"); |
+ createDir(file); |
+ expect(predicate(file), equals(forDirectory)); |
}), completes); |
}); |