Repository navigation
Commit adb834b
committed
Try to deal with flaky tests
We have a test that tries to test the "calibration" function in BCrypt.
This function is supposed to return a "cost" based on some number of
milliseconds passed in. We're trying to make the cost relative to some
beginning cost (MIN_COST + 1), time that, then use it as the "relative
time". The problem is that the time this takes in CI is not constant,
so even `min_time_ms * 4` may fit inside the same "cost" as the
original.
I'm bumping the factor to `5` to hopefully reduce the flakiness. It
seems like we just want to test that "some time deadline" returns a
greater cos than a different time deadline, so I think bumping the
factor to 5 is a legit fix1 parent eba09de commit adb834b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments