Skip to content

Conversation

@novemberborn
Copy link
Member

Fixes #590. Depends on sindresorhus/get-stream#6. Hopefully fixes #498 as well.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @ingro, @sotojuan and @ntwb to be potential reviewers

@vadimdemedes
Copy link
Contributor

Neat, let's merge and update sindresorhus/get-stream first and get this in right away ;)

- '[ -z "$COVERALLS_REPO_TOKEN" ] && tap --coverage-report=text-lcov | ./node_modules/.bin/coveralls'
matrix:
allow_failures:
- node_js: '0.10'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphy 12

@sindresorhus
Copy link
Member

get-stream@2 is out.

Use the buffer variable in case only a partial line was received in the str. This was the original intent of this function.
In Node 0.10 pause() does not return the stream. The stream was being paused because get-stream did not use flowing mode, and adding the 'data' listener would switch the stream to flowing mode. However that did not work with Node 0.10 either. get-stream has been updated to use flowing mode, which makes pause() unnecessary. The test now passes in Node 0.10.
The watcher test is no longer failing. Hopefully using flowing mode in get-stream also fixes other random failures and we can require Node 0.10 tests to pass again.
novemberborn added a commit that referenced this pull request Mar 3, 2016
@novemberborn novemberborn merged commit 1e62626 into master Mar 3, 2016
@novemberborn novemberborn deleted the fix-010-watch-test branch March 3, 2016 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants