Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: sdk/lib/_internal/pub/test/package_files_test.dart

Issue 341643002: Make short-running Git operations synchronous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/source/git.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/package_files_test.dart
diff --git a/sdk/lib/_internal/pub/test/package_files_test.dart b/sdk/lib/_internal/pub/test/package_files_test.dart
index 9598c763c859f060ee4d618e277e81f2d3d3fcc6..d7eb5d2bd5561833cd7bd5ae057fae19c04abd79 100644
--- a/sdk/lib/_internal/pub/test/package_files_test.dart
+++ b/sdk/lib/_internal/pub/test/package_files_test.dart
@@ -37,13 +37,13 @@ main() {
]).create();
schedule(() {
- expect(entrypoint.packageFiles(), completion(unorderedEquals([
+ expect(entrypoint.packageFiles(), unorderedEquals([
path.join(root, 'pubspec.yaml'),
path.join(root, 'file1.txt'),
path.join(root, 'file2.txt'),
path.join(root, 'subdir', 'subfile1.txt'),
path.join(root, 'subdir', 'subfile2.txt')
- ])));
+ ]));
});
});
@@ -68,13 +68,13 @@ main() {
]).create();
schedule(() {
- expect(entrypoint.packageFiles(), completion(unorderedEquals([
+ expect(entrypoint.packageFiles(), unorderedEquals([
path.join(root, 'pubspec.yaml'),
path.join(root, 'file1.txt'),
path.join(root, 'file2.txt'),
path.join(root, 'subdir', 'subfile1.txt'),
path.join(root, 'subdir', 'subfile2.txt')
- ])));
+ ]));
});
});
@@ -90,12 +90,12 @@ main() {
]).create();
schedule(() {
- expect(entrypoint.packageFiles(), completion(unorderedEquals([
+ expect(entrypoint.packageFiles(), unorderedEquals([
path.join(root, 'pubspec.yaml'),
path.join(root, '.gitignore'),
path.join(root, 'file2.text'),
path.join(root, 'subdir', 'subfile2.text')
- ])));
+ ]));
});
});
@@ -123,7 +123,7 @@ void commonTests() {
schedule(() {
expect(entrypoint.packageFiles(),
- completion(equals([path.join(root, 'pubspec.yaml')])));
+ equals([path.join(root, 'pubspec.yaml')]));
});
});
@@ -135,7 +135,7 @@ void commonTests() {
schedule(() {
expect(entrypoint.packageFiles(),
- completion(equals([path.join(root, 'pubspec.yaml')])));
+ equals([path.join(root, 'pubspec.yaml')]));
});
});
@@ -149,7 +149,7 @@ void commonTests() {
schedule(() {
expect(entrypoint.packageFiles(),
- completion(equals([path.join(root, 'pubspec.yaml')])));
+ equals([path.join(root, 'pubspec.yaml')]));
});
});
@@ -161,10 +161,10 @@ void commonTests() {
]).create();
schedule(() {
- expect(entrypoint.packageFiles(), completion(unorderedEquals([
+ expect(entrypoint.packageFiles(), unorderedEquals([
path.join(root, 'pubspec.yaml'),
path.join(root, 'pubspec.lock', 'file.txt')
- ])));
+ ]));
});
});
@@ -185,12 +185,12 @@ void commonTests() {
schedule(() {
expect(entrypoint.packageFiles(beneath: path.join(root, 'subdir')),
- completion(unorderedEquals([
+ unorderedEquals([
path.join(root, 'subdir', 'subfile1.txt'),
path.join(root, 'subdir', 'subfile2.txt'),
path.join(root, 'subdir', 'subsubdir', 'subsubfile1.txt'),
path.join(root, 'subdir', 'subsubdir', 'subsubfile2.txt')
- ])));
+ ]));
});
});
@@ -210,12 +210,12 @@ void commonTests() {
schedule(() {
expect(entrypoint.packageFiles(beneath: path.join(root, 'packages')),
- completion(unorderedEquals([
+ unorderedEquals([
path.join(root, 'packages', 'subfile1.txt'),
path.join(root, 'packages', 'subfile2.txt'),
path.join(root, 'packages', 'subsubdir', 'subsubfile1.txt'),
path.join(root, 'packages', 'subsubdir', 'subsubfile2.txt')
- ])));
+ ]));
});
});
});
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/source/git.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698