Commit 1191aa6097c64a252358b3b5b8ab420e11a9a2f6
1 parent
45b813f6
Missing modbus_flush call in unit tests after a forced timeout
Showing
1 changed file
with
2 additions
and
0 deletions
tests/unit-test-client.c
| @@ -600,6 +600,8 @@ int main(int argc, char *argv[]) | @@ -600,6 +600,8 @@ int main(int argc, char *argv[]) | ||
| 600 | /* Restore original timeout */ | 600 | /* Restore original timeout */ |
| 601 | modbus_set_timeout_begin(ctx, &timeout_begin_old); | 601 | modbus_set_timeout_begin(ctx, &timeout_begin_old); |
| 602 | 602 | ||
| 603 | + modbus_flush(ctx); | ||
| 604 | + | ||
| 603 | /** BAD RESPONSE **/ | 605 | /** BAD RESPONSE **/ |
| 604 | printf("\nTEST BAD RESPONSE ERROR:\n"); | 606 | printf("\nTEST BAD RESPONSE ERROR:\n"); |
| 605 | 607 |