Skip to content

Commit f011ec1

Browse files
committed
test fix.
1 parent 1d52db3 commit f011ec1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app/tests/TestPowerSourceCluster.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ void TestPowerSourceCluster::TestEndpointList(nlTestSuite * apSuite, void * apCo
127127
NL_TEST_ASSERT(apSuite, vec.size() == 0);
128128
}
129129

130+
if (powerSourceServer.GetNumSupportedEndpointLists() < 2)
131+
{
132+
// Test assumes at least two endpoints. This runs on linux, not worthwhile to run on platforms with fewer endpoints.
133+
return;
134+
}
135+
130136
// *****************
131137
// Test setting, getting and reading through the attribute access interface
132138
// *****************

0 commit comments

Comments
 (0)