forked from MyTooliT/ICOc
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Running the test suite:
make testoften fails on Linux because of missing response messages to certain requests (NoResponseError). This does not seem to be a problem on macOS or Windows. Previously we used to add STU resets to some of the doctests on Linux:
from asyncio import run
from platform import system
if system() == 'Linux':
async def reset():
async with Connection() as stu:
await stu.reset()
run(reset())This helped a lot, but is probably not feasible in the long run. For the latest release I removed all of the reset statements. Ideally we should get rid of the underling problem.
Notes:
- In general use the missing response messages do not seem to be a problem (on Linux), as we have multiple projects, where we succesfully use the ICOtronic library on Linux.
- The underlying problem might be somewhere related to the driver as the ICOtronic library uses
- the PCANBasic API on macOS and Windows
- SocketCAN on Linux.
- As far as I remember we do not use any OS specific code regarding the CAN communication.
- I already tried chaning the timeout in the request coroutine, which did not improve the situation as far as I could tell.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working