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

Test hangs with Node.js ≥ 12 #380

Open
guimard opened this issue Jan 29, 2020 · 0 comments
Open

Test hangs with Node.js ≥ 12 #380

guimard opened this issue Jan 29, 2020 · 0 comments

Comments

@guimard
Copy link

guimard commented Jan 29, 2020

Hi,

when trying to launch test using Node.js ≥ 12, It hangs after success, then timeout :

$ tape test/unit/*
TAP version 13
# Drop TCP Connection Before server accepts the request
ok 1 Request received
ok 2 Server should emit connect event
ok 3 Connection should emit close event
ok 4 Close reason code should be 1006
ok 5 Description should be correct
# Issue 195 - passing number to connection.send() shouldn't throw
/<<PKGBUILDDIR>>/test/scripts/echo-server.js
ok 6 connected
ok 7 should not throw
# Request can only be rejected or accepted once.
ok 8 First call to accept() should succeed.
ok 9 Second call to accept() should throw.
ok 10 Call to reject() after accept() should throw.
ok 11 First call to reject() should succeed.
ok 12 Second call to reject() should throw.
ok 13 Call to accept() after reject() should throw.
# Protocol mismatch should be handled gracefully
# setup
# mismatched protocol connection
ok 14 request.accept() should throw
ok 15 connectFailed event should be emitted on client
# teardown
# W3CWebSockets adding event listeners with ws.onxxxxx
/<<PKGBUILDDIR>>/test/scripts/echo-server.js
ok 16 onopen should be called first
ok 17 onmessage should be called second
ok 18 Received message data should match sent message data.
ok 19 onclose should be called last
# W3CWebSockets adding event listeners with ws.addEventListener
/<<PKGBUILDDIR>>/test/scripts/echo-server.js
ok 20 "open" should be fired first
ok 21 "message" should be fired second
ok 22 Received message data should match sent message data.
ok 23 "close" should be fired
ok 24 "close" should be fired one more time
# Serializing a WebSocket Frame with no data
ok 25 should not throw an error
ok 26 Generated bytes should be correct

1..26
# tests 26
# pass  26

# ok

Aborted
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

No branches or pull requests

1 participant