Commit 8e52082
committed
Update TestMultiValidationTokeFile token generation with no trailing newline char
Description
The test does the following:
1.Randomly appends new-line character to the token value buffer
2. If #1 is done, it generates temp token file with buffer containing
new-line character.
3. Also, it remember the original token for future validation
4. The code parse and read token-validation files and removes the new-line
character as desired.
Failure in this case due to random buffer used to populate token value
contained newline character which was used for validation, however,
the file parse/read code as expected removed the newline character,
hence causing the mismatch.
Patch addresses the concern by ensuring test generated random
token-value has no trailing newline chars.
Testing
tests/fast/RandomUnitTests.toml -s 13550282291 parent 982ccff commit 8e52082
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | | - | |
1268 | | - | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1269 | 1278 | | |
1270 | 1279 | | |
1271 | 1280 | | |
| |||
0 commit comments