Skip to content

Tests Suite Fails with No Response Error on Linux #19

@sanssecours

Description

@sanssecours

Description

Running the test suite:

make test

often 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions