Skip to content

test: flaky test-net-can-reset-timeout #14241

Description

@refack
  • Version: master
  • Platform: freeBSD
  • Subsystem: test,net,stream

https://ci.nodejs.org/job/node-test-commit-freebsd/10321/nodes=freebsd10-64/

not ok 820 parallel/test-net-can-reset-timeout
---
duration_ms: 2.482
severity: fail
stack: |-
timeout
timeout
server side end
client side end
Mismatched <anonymous> function calls. Expected exactly 1, actual 2.
at Object.exports.mustCall (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd10-64/test/common/index.js:481:10)
at Server.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd10-64/test/parallel/test-net-can-reset-timeout.js:31:31)
at Server.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd10-64/test/common/index.js:513:15)
at emitOne (events.js:115:13)
at Server.emit (events.js:210:7)
at TCP.onconnection (net.js:1553:8)
...

The test:

'use strict';constcommon=require('../common');constnet=require('net');constserver=net.createServer(common.mustCall(function(stream){stream.setTimeout(100);stream.resume();stream.on('timeout',common.mustCall(function(){console.log('timeout');// try to reset the timeout.stream.write('WHAT.');}));stream.on('end',function(){console.log('server side end');stream.end();});}));server.listen(0,function(){constc=net.createConnection(this.address().port);c.on('data',function(){c.end();});c.on('end',function(){console.log('client side end');server.close();});});

/cc @nodejs/testing @nodejs/platform-freebsd @nodejs/streams

P.S. to whomever tackles this, could you add a comment explaining what this is testing a la doc/guides/writing-tests.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testIssues and PRs related to the tests with unstable failures on the CI.freebsdIssues and PRs related to the FreeBSD platform.netIssues and PRs related to the net subsystem.streamIssues and PRs related to the stream subsystem.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions