Skip to content

Commit

Permalink
Update: Fix flakey tests (closes #89)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Feb 20, 2017
1 parent f82769a commit 4b411f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ describe('glob-stream', function() {
], done);
});

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

function assert(pathObjs) {
expect(pathObjs.length).toEqual(3);
expect(pathObjs).toEqual(expected);
expect(pathObjs).toInclude(expected[0]);
expect(pathObjs).toInclude(expected[1]);
expect(pathObjs).toInclude(expected[2]);
}

pipe([
Expand Down
4 changes: 3 additions & 1 deletion test/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ describe('readable stream', function() {

function assert(pathObjs) {
expect(pathObjs.length).toBe(3);
expect(pathObjs).toEqual(expected);
expect(pathObjs).toInclude(expected[0]);
expect(pathObjs).toInclude(expected[1]);
expect(pathObjs).toInclude(expected[2]);
}

pipe([
Expand Down

0 comments on commit 4b411f2

Please # to comment.