Open BrianJKoopman opened 3 months ago
This PR adds support for binding to a random available port when using the 'tcp' relay in the DeviceEmulator. This is now the default behavior. Tests that use this will need to grab the bound port via emulator.port to connect to.
DeviceEmulator
emulator.port
This should fix the issue with flaky moxa tests seen in https://github.com/simonsobs/socs/pull/633.
Tested locally with the modifications to the tests here.
This doesn't actually solve the problem in #633, so I might hold off on merging.
Description
This PR adds support for binding to a random available port when using the 'tcp' relay in the
DeviceEmulator
. This is now the default behavior. Tests that use this will need to grab the bound port viaemulator.port
to connect to.Motivation and Context
This should fix the issue with flaky moxa tests seen in https://github.com/simonsobs/socs/pull/633.
How Has This Been Tested?
Tested locally with the modifications to the tests here.
Types of changes
Checklist: