Commit 1dac3b6
committed
fix(test): add some tolerance in test_serial_dos
test_serial_dos ensures that the internal FIFO buffer used for storing
the bytes to be written does not grow indefinitely. Some times during
the test we observe small allocations that make the assertion fail.
Add some tolerance to the test (1%) to avoid false positives.
Signed-off-by: Babis Chalios <bchalios@amazon.es>1 parent 304c393 commit 1dac3b6
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| |||
0 commit comments