Skip to content

Commit

Permalink
test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Aug 3, 2023
1 parent 1d52db3 commit f011ec1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/tests/TestPowerSourceCluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ void TestPowerSourceCluster::TestEndpointList(nlTestSuite * apSuite, void * apCo
NL_TEST_ASSERT(apSuite, vec.size() == 0);
}

if (powerSourceServer.GetNumSupportedEndpointLists() < 2)
{
// Test assumes at least two endpoints. This runs on linux, not worthwhile to run on platforms with fewer endpoints.
return;
}

// *****************
// Test setting, getting and reading through the attribute access interface
// *****************
Expand Down

0 comments on commit f011ec1

Please sign in to comment.