Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 58af8aa into e2ffa2d
Browse files Browse the repository at this point in the history
bzbarsky-apple authored Oct 25, 2024

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
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
@@ -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);

0 comments on commit 5329121

Please sign in to comment.