Skip to content

Commit

Permalink
Fix back the test: out of memory is from the advertiser not allocators
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Mar 14, 2022
1 parent bea8c17 commit 284f631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ void OperationalAdverts(nlTestSuite * inSuite, void * inContext)
NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams3) == CHIP_NO_ERROR);
NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams4) == CHIP_NO_ERROR);
NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams5) == CHIP_NO_ERROR);
NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams6) == CHIP_NO_ERROR);

// Adding a 6th should return an error
NL_TEST_ASSERT(inSuite, mdnsAdvertiser.Advertise(operationalParams6) == CHIP_ERROR_NO_MEMORY);
}

void CommissionableAdverts(nlTestSuite * inSuite, void * inContext)
Expand Down

0 comments on commit 284f631

Please sign in to comment.