tonykolomeytsev / kekmech-clapi-raspberry

A simple library for controlling Arduino and STM32 Nucleo via Raspberry Pi using Serial.
MIT License
1 stars 1 forks source link

Write the tests! #4

Open tonykolomeytsev opened 5 years ago

tonykolomeytsev commented 5 years ago

It is necessary to write tests simulating the work of asynchronous requests (Push, Request, LongPoll) to several devices simultaneously. It requires writing mocks.

tonykolomeytsev commented 5 years ago

Need to write test for long-poll feature. But first need to add a timeout (of waiting response) for LongPoll and Request. For LongPoll add the number of forks, after which the long-poll can not continue (smth like a lifetime)