Skip to content

Commit bc84b7e

Browse files
fix: Threshold metric for http_req_failed (#734)
1 parent 665b3ac commit bc84b7e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/views/Generator/TestOptions/Thresholds/ThresholdRow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export function ThresholdRow({ field, index, remove }: ThresholdRowProps) {
100100
<FieldGroup errors={errors} name={`thresholds.${index}.value`} mb="0">
101101
<TextField.Root
102102
type="number"
103+
step="0.01"
103104
placeholder="value"
104105
{...register(`thresholds.${index}.value`, { valueAsNumber: true })}
105106
>

src/views/Generator/TestOptions/Thresholds/Thresholds.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function Thresholds() {
3838
metric: 'http_req_duration',
3939
statistic: 'avg',
4040
condition: '<',
41-
value: 100,
41+
value: 0,
4242
stopTest: false,
4343
})
4444
}

0 commit comments

Comments
 (0)