Skip to content

Commit

Permalink
test: Do not fail tests that exceed threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Feb 16, 2024
1 parent e7f93dc commit fe8d9e7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 15 deletions.
9 changes: 6 additions & 3 deletions k6/performance-tests/graphql/DataCubeComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ const variables = {
export const options = {
iterations: 2,
thresholds: {
http_req_duration: [
`avg<${2 * metadata.queries.DataCubeComponents.expectedDuration}`,
],
http_req_duration: {
threshold: `avg<${
2 * metadata.queries.DataCubeComponents.expectedDuration
}`,
abortOnFail: false,
},
},
};

Expand Down
9 changes: 6 additions & 3 deletions k6/performance-tests/graphql/DataCubeMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ const variables = {
export const options = {
iterations: 2,
thresholds: {
http_req_duration: [
`avg<${2 * metadata.queries.DataCubeMetadata.expectedDuration}`,
],
http_req_duration: {
threshold: `avg<${
2 * metadata.queries.DataCubeMetadata.expectedDuration
}`,
abortOnFail: false,
},
},
};

Expand Down
9 changes: 6 additions & 3 deletions k6/performance-tests/graphql/DataCubeObservations.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ const variables = {
export const options = {
iterations: 2,
thresholds: {
http_req_duration: [
`avg<${2 * metadata.queries.DataCubeObservations.expectedDuration}`,
],
http_req_duration: {
threshold: `avg<${
2 * metadata.queries.DataCubeObservations.expectedDuration
}`,
abortOnFail: false,
},
},
};

Expand Down
7 changes: 4 additions & 3 deletions k6/performance-tests/graphql/DataCubePreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ const variables = {
export const options = {
iterations: 2,
thresholds: {
http_req_duration: [
`avg<${2 * metadata.queries.DataCubePreview.expectedDuration}`,
],
http_req_duration: {
threshold: `avg<${2 * metadata.queries.DataCubePreview.expectedDuration}`,
abortOnFail: false,
},
},
};

Expand Down
7 changes: 4 additions & 3 deletions k6/performance-tests/graphql/PossibleFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ const variables = {
export const options = {
iterations: 2,
thresholds: {
http_req_duration: [
`avg<${2 * metadata.queries.PossibleFilters.expectedDuration}`,
],
http_req_duration: {
threshold: `avg<${2 * metadata.queries.PossibleFilters.expectedDuration}`,
abortOnFail: false,
},
},
};

Expand Down

0 comments on commit fe8d9e7

Please sign in to comment.