Skip to content

I22 connection tests did not fail when they weren't mocking #850

Closed

Description

@callumforrester

#847 appears to have been caused by #841 not passing mock=True to the DeviceInitializationController, that should have caused a timeout failure when the CI tried to connect to PVs that don't exist on its network, instead the tests passed after a very long time, suggesting that something was timing out but not failing the test, perhaps an exception was being swallowed.

This issue is to investigate and prevent recurrence

Acceptance Criteria

  • The cause of the non-failure is known
  • A regression test/tests are in place to prevent recurrence

Activity

  1. added
    bug
    on Oct 17, 2024
  2. callumforrester commented on Oct 17, 2024

    @callumforrester
    ContributorAuthor

    Tagging @DominicOram and @DiamondJoseph for awareness

  3. DiamondJoseph commented on Oct 18, 2024

    @DiamondJoseph
    Contributor

    make_all_devices returns the connected devices and also collects all of the exceptions that were raised.
    As discussed, the tests should have accounted for checking the collected exceptions.

  4. rtuck99 commented on Oct 25, 2024

    @rtuck99
    Contributor

    This is fixed in #858

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions