Skip to content

Commit 26d7e7f

Browse files
committed
Clarify DiscoveryImplPlatform initialization
1 parent 8fe265d commit 26d7e7f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/dnssd/platform/tests/TestPlatform.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ test::ExpectedCall commissionableLargeEnhanced = test::ExpectedCall()
156156
class TestDnssdPlatform : public ::testing::Test
157157
{
158158
public:
159-
static void SetUpTestSuite() { VerifyOrDie(chip::Platform::MemoryInit() == CHIP_NO_ERROR); }
159+
static void SetUpTestSuite()
160+
{
161+
ASSERT_EQ(chip::Platform::MemoryInit(), CHIP_NO_ERROR);
162+
// DiscoveryImplPlatform is initialized inside testcase code
163+
}
160164
static void TearDownTestSuite()
161165
{
162166
DiscoveryImplPlatform::GetInstance().Shutdown();

0 commit comments

Comments
 (0)