Skip to content

Commit

Permalink
Increase timeout for localserver to address throtteling
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Aug 10, 2024
1 parent 9bc9fe5 commit 6052206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/localserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ app.get('/:filename', (req, res) => {
<script src="mocha/mocha.js"></script>
<script>
mocha.setup('bdd'); // Use BDD testing style
mocha.setup({ui: 'bdd', timeout: 10000 /* increased timeout to mitigated throttling*/}); // Use BDD testing style
</script>
` +
Expand Down
2 changes: 1 addition & 1 deletion test/unidirectional-streams.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('unidirectional streams', function () {
process.env.USE_PONYFILL === 'true'
)
addpolyfill = 4000
this.timeout(6000 + addpolyfill)
this.timeout(this.timeout() + 4000 + addpolyfill)
client = new WebTransport(
`${process.env.SERVER_URL}/unidirectional_server_delay_before_read`,
wtOptions
Expand Down

0 comments on commit 6052206

Please sign in to comment.