Skip to content

Commit

Permalink
style: apply linters automatic fixes (#1197)
Browse files Browse the repository at this point in the history
Signed-off-by: Hyperledger Bot <[email protected]>
Co-authored-by: Hyperledger Bot <[email protected]>
  • Loading branch information
github-actions[bot] and hyperledger-bot authored Jun 18, 2024
1 parent 47de881 commit aa063ec
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
/*global __ENV*/
/* global __ENV */

import { Options } from "k6/options";
import { Options } from 'k6/options'

export const defaultOptions: Options = {
setupTimeout: '120s',
scenarios: {
smoke: {
// a simple test to ensure performance tests work and requests don't fail
executor: "shared-iterations",
executor: 'shared-iterations',
vus: 1,
iterations: 1,
tags: { scenario_label: __ENV.SCENARIO_LABEL || "defaultScenarioLabel" }, // add label for filtering in observability platform
},
tags: { scenario_label: __ENV.SCENARIO_LABEL || 'defaultScenarioLabel' } // add label for filtering in observability platform
}
},
thresholds: {
http_req_failed: [
// fail if any requests fail during smoke test
{
threshold: "rate==0",
abortOnFail: true,
},
threshold: 'rate==0',
abortOnFail: true
}
],
http_req_duration: [
//TODO: this threshold is too high, it should be adjusted to the actual performance requirements to lower value
{ threshold: "p(95)<11000", abortOnFail: false }, // 95% of requests should complete within 5 seconds, but don't fail tests
// TODO: this threshold is too high, it should be adjusted to the actual performance requirements to lower value
{ threshold: 'p(95)<11000', abortOnFail: false } // 95% of requests should complete within 5 seconds, but don't fail tests
],
checks: [{ threshold: "rate==1", abortOnFail: true }], // fail if any checks fail (the checks are defined in test code which is executed)
checks: [{ threshold: 'rate==1', abortOnFail: true }] // fail if any checks fail (the checks are defined in test code which is executed)
}
}

0 comments on commit aa063ec

Please sign in to comment.