GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: simplify assertion in http2 tests · nodejs/node@e9416d4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/sequential
    • test-http2-timeout-large-write-file.js
    • test-http2-timeout-large-write.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/sequential/test-http2-timeout-large-write-file.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-http2-timeout-large-write-file.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ server.on('stream', common.mustCall((stream) => {
4848
}));
4949
server.setTimeout(serverTimeout);
5050
server.on('timeout', () => {
51-
assert.strictEqual(didReceiveData, false, 'Should not timeout');
51+
assert.ok(!didReceiveData, 'Should not timeout');
5252
});
5353

5454
server.listen(0, common.mustCall(() => {
Collapse file

‎test/sequential/test-http2-timeout-large-write.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-http2-timeout-large-write.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ server.on('stream', common.mustCall((stream) => {
4040
stream.write(content);
4141
stream.setTimeout(serverTimeout);
4242
stream.on('timeout', () => {
43-
assert.strictEqual(didReceiveData, false, 'Should not timeout');
43+
assert.ok(!didReceiveData, 'Should not timeout');
4444
});
4545
stream.end();
4646
}));
4747
server.setTimeout(serverTimeout);
4848
server.on('timeout', () => {
49-
assert.strictEqual(didReceiveData, false, 'Should not timeout');
49+
assert.ok(!didReceiveData, 'Should not timeout');
5050
});
5151

5252
server.listen(0, common.mustCall(() => {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.