Commit 1191aa6097c64a252358b3b5b8ab420e11a9a2f6

Authored by Stéphane Raimbault
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 600 /* Restore original timeout */
601 601 modbus_set_timeout_begin(ctx, &timeout_begin_old);
602 602  
  603 + modbus_flush(ctx);
  604 +
603 605 /** BAD RESPONSE **/
604 606 printf("\nTEST BAD RESPONSE ERROR:\n");
605 607  
... ...