Skip to content

Commit

Permalink
Added temporary logs to see why test fails in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Nov 9, 2023
1 parent 65f20ad commit f0e1e46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/tests/TestSceneTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,11 @@ void TestEndpointScenes(nlTestSuite * aSuite, void * aContext)
NL_TEST_ASSERT(aSuite, CHIP_NO_ERROR == sceneTable->GetSceneTableEntry(kFabric1, sceneId6, scene));
NL_TEST_ASSERT(aSuite, CHIP_NO_ERROR == sceneTable->GetSceneTableEntry(kFabric1, sceneId7, scene));

// TODO: Remove logs before merge, these checks are somehow only failing in CI, logs added for debugging
CHIP_ERROR err = sceneTable->GetSceneTableEntry(kFabric2, sceneId1, scene);
printf("GetSceneTableEntry returned error: %s\n", ErrorStr(err));
// END TODO

NL_TEST_ASSERT(aSuite, CHIP_NO_ERROR == sceneTable->GetSceneTableEntry(kFabric2, sceneId1, scene));
NL_TEST_ASSERT(aSuite, CHIP_NO_ERROR == sceneTable->GetSceneTableEntry(kFabric2, sceneId2, scene));
NL_TEST_ASSERT(aSuite, CHIP_NO_ERROR == sceneTable->GetSceneTableEntry(kFabric2, sceneId3, scene));
Expand Down

0 comments on commit f0e1e46

Please sign in to comment.