Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed May 16, 2024
1 parent b79759e commit 7b5d0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gateway-conformance/src/conformance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const tests: TestConfig[] = [
}
]

async function getReportDetails (path: string) {
async function getReportDetails (path: string): Promise<{ failureCount: number, successCount: number, successRate: number }> {
let failureCount = 0
let successCount = 0

Expand Down Expand Up @@ -321,7 +321,7 @@ describe('@helia/verified-fetch - gateway conformance', function () {

tests.forEach(({ name, spec, skip, run, successRate: minSuccessRate }) => {
const log = logger.forComponent(name)
const expectedSuccessRate = process.env.SUCCESS_RATE ? Number.parseFloat(process.env.SUCCESS_RATE) : minSuccessRate
const expectedSuccessRate = process.env.SUCCESS_RATE != null ? Number.parseFloat(process.env.SUCCESS_RATE) : minSuccessRate

it(`${name} has a success rate of at least ${expectedSuccessRate}%`, async function () {
const { stderr, stdout } = await execa(binaryPath, getConformanceTestArgs(name,
Expand Down

0 comments on commit 7b5d0cc

Please sign in to comment.