Commit a98334e
authored
fix: Address issue with newline characters when running Logging Hook Unit Tests on linux (#374)
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->
## This PR
<!-- add the description of the PR here -->
I noticed when I ran the LoggingHook unit tests on a WSL Ubuntu instance
the some tests fails due to new line characters. It appears I never
normalized or excluded newline characters when asserting equal

I also removed the `Assert.Contains` snippets as the content and layout
of the log message is asserted in the other tests. This Assert method
does not have an overload for ignoring new line characters
I assume the GitHub CI runner may be ignore the line endings by default?
### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->
### Notes
<!-- any additional notes for this PR -->
### Follow-up Tasks
<!-- anything that is related to this PR but not done here should be
noted under this section -->
<!-- if there is a need for a new issue, please link it here -->
### How to test
<!-- if applicable, add testing instructions under this section -->
Signed-off-by: Kyle Julian <38759683+kylejuliandev@users.noreply.github.com>1 parent 4977542 commit a98334e
1 file changed
+36
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
| |||
157 | 152 | | |
158 | 153 | | |
159 | 154 | | |
160 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
161 | 158 | | |
162 | 159 | | |
163 | 160 | | |
| |||
215 | 212 | | |
216 | 213 | | |
217 | 214 | | |
218 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 252 | | |
263 | 253 | | |
264 | 254 | | |
| |||
301 | 291 | | |
302 | 292 | | |
303 | 293 | | |
304 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
305 | 297 | | |
306 | 298 | | |
307 | 299 | | |
| |||
358 | 350 | | |
359 | 351 | | |
360 | 352 | | |
361 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
362 | 356 | | |
363 | 357 | | |
364 | 358 | | |
| |||
393 | 387 | | |
394 | 388 | | |
395 | 389 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | 390 | | |
407 | 391 | | |
408 | 392 | | |
| |||
452 | 436 | | |
453 | 437 | | |
454 | 438 | | |
455 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
456 | 442 | | |
457 | 443 | | |
458 | 444 | | |
| |||
499 | 485 | | |
500 | 486 | | |
501 | 487 | | |
502 | | - | |
503 | | - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
504 | 491 | | |
505 | 492 | | |
506 | 493 | | |
| |||
539 | 526 | | |
540 | 527 | | |
541 | 528 | | |
542 | | - | |
543 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
544 | 532 | | |
545 | 533 | | |
546 | 534 | | |
| |||
579 | 567 | | |
580 | 568 | | |
581 | 569 | | |
582 | | - | |
583 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
584 | 573 | | |
585 | 574 | | |
586 | 575 | | |
| |||
619 | 608 | | |
620 | 609 | | |
621 | 610 | | |
622 | | - | |
623 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
624 | 614 | | |
625 | 615 | | |
626 | 616 | | |
| |||
659 | 649 | | |
660 | 650 | | |
661 | 651 | | |
662 | | - | |
663 | | - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
664 | 655 | | |
665 | 656 | | |
666 | 657 | | |
| |||
0 commit comments