I guess Linux doesn't iterate over folders alphabetically. R=nweiz@google.com Review URL: https://codereview.chromium.org//127033002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@31591 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/watcher/test/directory_watcher/shared.dart b/pkgs/watcher/test/directory_watcher/shared.dart index f831196..2e0186f 100644 --- a/pkgs/watcher/test/directory_watcher/shared.dart +++ b/pkgs/watcher/test/directory_watcher/shared.dart
@@ -55,10 +55,13 @@ writeFile("a.txt", contents: "same"); writeFile("b.txt", contents: "before"); startWatcher(); + writeFile("a.txt", contents: "same"); writeFile("b.txt", contents: "after"); - expectModifyEvent("a.txt"); - expectModifyEvent("b.txt"); + inAnyOrder(() { + expectModifyEvent("a.txt"); + expectModifyEvent("b.txt"); + }); }); test('when the watched directory is deleted, removes all files', () {