Skip to content

Commit

Permalink
Increase test cluster time (project-chip#13436)
Browse files Browse the repository at this point in the history
* Increase TestCluster timeout

This timeout is the timeout for running the entire test suite.

* Fix cluster test project-chip#161
  • Loading branch information
cecille authored and step0035 committed Feb 8, 2022
1 parent 40154e4 commit b68ccbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chip-tool/commands/tests/TestCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <type_traits>
#include <zap-generated/tests/CHIPClustersTest.h>

constexpr uint16_t kTimeoutInSeconds = 30;
constexpr uint16_t kTimeoutInSeconds = 90;

class TestCommand : public CHIPCommand
{
Expand Down
5 changes: 5 additions & 0 deletions src/app/clusters/test-cluster-server/test-cluster-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@ bool emberAfTestClusterClusterTestListInt8UReverseRequestCallback(
{
auto iter = commandData.arg1.begin();
Commands::TestListInt8UReverseResponse::Type responseData;
if (count == 0)
{
SuccessOrExit(commandObj->AddResponseData(commandPath, responseData));
return true;
}
size_t cur = count;
Platform::ScopedMemoryBuffer<uint8_t> responseBuf;
VerifyOrExit(responseBuf.Calloc(count), );
Expand Down

0 comments on commit b68ccbf

Please sign in to comment.