Commit d41cc2d
committed
fix(test): use valid Math.random() return value in DVB A168 test
Replace stub.returns(1) with stub.returns(0.99) since Math.random()
returns [0, 1) exclusive. The value 1.0 masked the off-by-one bug
because it produced the same result with both formulas.1 parent dbc828b commit d41cc2d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments