Skip to content

Commit 0ea687f

Browse files
committed
asim: fix lower_bound
It wasn't being removed from the args, so using it necessarily tripped the test. We need to call `scanIfExists` (this could all be made a little less opaque).
1 parent a4e63be commit 0ea687f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvserver/asim/tests/helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func scanThreshold(t *testing.T, d *datadriven.TestData) (th assertion.Threshold
105105
th.ThresholdType = assertion.UpperBound
106106
return th
107107
}
108-
scanArg(t, d, "lower_bound", &th.Value)
108+
scanMustExist(t, d, "lower_bound", &th.Value)
109109
th.ThresholdType = assertion.LowerBound
110110
return th
111111
}

0 commit comments

Comments
 (0)