Skip to content

Commit fb92691

Browse files
committed
Update: Fix flakey tests (closes #89)
1 parent 47ba31f commit fb92691

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: test/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ describe('glob-stream', function() {
127127
], done);
128128
});
129129

130-
// TODO: flaky globbing?
131130
it('finds files in paths that contain ( ) when they match the glob', function(done) {
132131
var expected = [
133132
{
@@ -149,7 +148,9 @@ describe('glob-stream', function() {
149148

150149
function assert(pathObjs) {
151150
expect(pathObjs.length).toEqual(3);
152-
expect(pathObjs).toEqual(expected);
151+
expect(pathObjs).toInclude(expected[0]);
152+
expect(pathObjs).toInclude(expected[1]);
153+
expect(pathObjs).toInclude(expected[2]);
153154
}
154155

155156
pipe([

Diff for: test/readable.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ describe('readable stream', function() {
104104

105105
function assert(pathObjs) {
106106
expect(pathObjs.length).toBe(3);
107-
expect(pathObjs).toEqual(expected);
107+
expect(pathObjs).toInclude(expected[0]);
108+
expect(pathObjs).toInclude(expected[1]);
109+
expect(pathObjs).toInclude(expected[2]);
108110
}
109111

110112
pipe([

0 commit comments

Comments
 (0)