소스 검색

Missing modbus_flush call in unit tests after a forced timeout

Stéphane Raimbault 14 년 전
부모
커밋
1191aa6097
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tests/unit-test-client.c

+ 2 - 0
tests/unit-test-client.c

@@ -600,6 +600,8 @@ int main(int argc, char *argv[])
     /* Restore original timeout */
     modbus_set_timeout_begin(ctx, &timeout_begin_old);
 
+    modbus_flush(ctx);
+
     /** BAD RESPONSE **/
     printf("\nTEST BAD RESPONSE ERROR:\n");