Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with hapi@17.x.x toolchain (WIP) #30

Closed
wants to merge 1 commit into from

Conversation

fhemberger
Copy link
Contributor

@fhemberger fhemberger commented Nov 6, 2017

Update tests to be compatible with the new lab version and hapi@17.x.x

TODO: mocks.getHttpServer and mocks.getUdpServer need to be updated using async/await.

Refs:

EDIT: good itself is not yet compatible with hapi 17 yet, waiting for a decision there.

let hitCount = 0;
const server = Dgram.createSocket('udp4');
server.on('message', (msg) => {
hitCount += 1;
validateResponses(msg.toString(), expectedNumberOfEvents, expectedMsg);

if (hitCount >= 2) {
server.close(done);
server.close();
Copy link
Contributor

Choose a reason for hiding this comment

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

Two test failures in the Travis build. Perhaps you still need to pass a callback?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the methods still need async/await calls, but my 4:30 AM self had problems getting it running. 😀 – That's basically why I labeled it "WIP".

@@ -1,5 +1,4 @@
language: node_js
node_js:
- 7
- 6
- 4
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm very excited about node 8 => mostly for the improved V8 engine performance, but also for async/await. That said, is it time to deprecate node 4 - 6? Node 8 only became LTS last week. Though I guess since most Hapi modules seem to have moved it's probably time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's why this change is a breaking semver change. People using older versions of Node can still use the current release. I should make this more clearer in the README.

@fhemberger fhemberger mentioned this pull request Dec 28, 2017
@fhemberger fhemberger closed this Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants