Skip to content

Discovery non deterministic results #143

Closed

Description

@VadimKraus

As discussed in #68, the discovery test will occasionally fail.
This may result in an incorrect discovery. This issue is mainly related to following inverters and their similar schema:

<class 'solax.inverters.x1_boost.X1Boost'>
<class 'solax.inverters.x1_mini_v34.X1MiniV34'>

Steps to reproduce:

pytest --count=10 tests/test_discovery.py::test_discovery

Actual result:

============================================== short test summary info ==============================================
FAILED tests/test_discovery.py::test_discovery[inverters_fixture4-1-10] - AssertionError: assert <class 'solax.inverters.x1_boost.X1Boost'> == <class 'solax.inverters.x1_mini_v34.X1MiniV34'>
FAILED tests/test_discovery.py::test_discovery[inverters_fixture4-2-10] - AssertionError: assert <class 'solax.inverters.x1_boost.X1Boost'> == <class 'solax.inverters.x1_mini_v34.X1MiniV34'>
FAILED tests/test_discovery.py::test_discovery[inverters_fixture4-6-10] - AssertionError: assert <class 'solax.inverters.x1_boost.X1Boost'> == <class 'solax.inverters.x1_mini_v34.X1MiniV34'>
FAILED tests/test_discovery.py::test_discovery[inverters_fixture4-9-10] - AssertionError: assert <class 'solax.inverters.x1_boost.X1Boost'> == <class 'solax.inverters.x1_mini_v34.X1MiniV34'>
===================================== 4 failed, 196 passed in 101.80s (0:01:41) =====================================

Expected result: No test failures

Activity

  1. squishykid commented on Jan 18, 2025

    @squishykid
    Owner

    Closing this for now and going to move the discussion to #185 where we can aggregate all the issues for this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions