Commit bec7ff3
committed
[nrf fromtree] tests: drivers: uart: uart_async_api: Tweak test_read_abort test
Test was staring a TX transfer and aborting it after 300 us from
the timer handler. Test was assuming that ongoing transfer will
not finish in those 300 us. This might not be true for higher
baudrates. Instead of using fixed timeout, a value is calculated
from the baudrate and targets to abort the transfer after approx.
20 bytes of 95 byte long transfer.
Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit 38c129d)1 parent 1789986 commit bec7ff3
1 file changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
| |||
603 | 606 | | |
604 | 607 | | |
605 | 608 | | |
606 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
607 | 617 | | |
608 | 618 | | |
609 | | - | |
| 619 | + | |
| 620 | + | |
610 | 621 | | |
611 | 622 | | |
612 | 623 | | |
613 | 624 | | |
614 | | - | |
| 625 | + | |
| 626 | + | |
615 | 627 | | |
616 | | - | |
| 628 | + | |
617 | 629 | | |
618 | 630 | | |
619 | 631 | | |
| |||
0 commit comments