-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
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(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Update tests to be compatible with the new
lab
version andhapi@17.x.x
TODO:
mocks.getHttpServer
andmocks.getUdpServer
need to be updated usingasync
/await
.Refs:
EDIT:
good
itself is not yet compatible with hapi 17 yet, waiting for a decision there.