Skip to content

Commit

Permalink
Merge branch 'main' into feat/race-nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
AmeanAsad committed Oct 24, 2023
2 parents c06a2b6 + 15bf85b commit ceda4c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ export class Saturn {
*
* @param {string} cidPath
* @param {object} [opts={}]
* @param {('car'|'raw')} [opts.format]
* @param {boolean} [opts.raceNodes]
* @param {('car'|'raw')} [opts.format]- -
* @param {boolean} [opts.raceNodes]- -
* @param {number} [opts.connectTimeout=5000]
* @param {number} [opts.downloadTimeout=0]
* @returns {Promise<AsyncIterable<Uint8Array>>}
Expand Down
3 changes: 2 additions & 1 deletion test/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import fs from 'fs'
import { addHttpPrefix } from '../src/utils/url.js'

const HTTP_STATUS_OK = 200
const HTTP_STATUS_TIMEOUT = 504

const __dirname = dirname(fileURLToPath(import.meta.url))
process.env.TESTING = 'true'
Expand Down Expand Up @@ -137,7 +138,7 @@ export function mockNodesHandlers (count, originDomain, failures = 0) {
return rest.get(url, (req, res, ctx) => {
if (idx < failures) {
return res(
ctx.status(504)
ctx.status(HTTP_STATUS_TIMEOUT)
)
}
const filepath = getFixturePath('hello.car')
Expand Down

0 comments on commit ceda4c2

Please sign in to comment.