Skip to content

Commit

Permalink
Merge 58af8aa into e2ffa2d
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored Oct 25, 2024
2 parents e2ffa2d + 58af8aa commit 5329121
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/tests/TestCommissioningWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ class TestCommissioningWindowManager : public ::testing::Test
static chip::SimpleTestEventTriggerDelegate sSimpleTestEventTriggerDelegate;
initParams.testEventTriggerDelegate = &sSimpleTestEventTriggerDelegate;
(void) initParams.InitializeStaticResourcesBeforeServerInit();
// Set a randomized server port(slightly shifted from CHIP_PORT) for testing
initParams.operationalServicePort =
static_cast<uint16_t>(initParams.operationalServicePort + chip::Crypto::GetRandU16() % 20);
// Use whatever server port the kernel decides to give us.
initParams.operationalServicePort = 0;

ASSERT_EQ(chip::Server::GetInstance().Init(initParams), CHIP_NO_ERROR);

Expand Down

0 comments on commit 5329121

Please sign in to comment.