We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38c3e91 commit ac43b68Copy full SHA for ac43b68
src/app/tests/TestCommissioningWindowManager.cpp
@@ -113,9 +113,8 @@ class TestCommissioningWindowManager : public ::testing::Test
113
static chip::SimpleTestEventTriggerDelegate sSimpleTestEventTriggerDelegate;
114
initParams.testEventTriggerDelegate = &sSimpleTestEventTriggerDelegate;
115
(void) initParams.InitializeStaticResourcesBeforeServerInit();
116
- // Set a randomized server port(slightly shifted from CHIP_PORT) for testing
117
- initParams.operationalServicePort =
118
- static_cast<uint16_t>(initParams.operationalServicePort + chip::Crypto::GetRandU16() % 20);
+ // Use whatever server port the kernel decides to give us.
+ initParams.operationalServicePort = 0;
119
120
ASSERT_EQ(chip::Server::GetInstance().Init(initParams), CHIP_NO_ERROR);
121
0 commit comments