Skip to content

Commit

Permalink
add missing change
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google authored and erjiaqing committed Jan 11, 2024
1 parent 00480e4 commit 2560809
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/controller/tests/data_model/TestRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ class TestResubscriptionCallback : public app::ReadClient::Callback
{
mOnResubscriptionsAttempted++;
mLastError = aTerminationCause;
if (aTerminationCause == CHIP_ERROR_ICD_SUBSCRIBE_INACTIVE_TIMEOUT)
if (aTerminationCause == CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT)
{
return CHIP_NO_ERROR;
}
Expand Down Expand Up @@ -2690,7 +2690,7 @@ void TestReadInteraction::TestSubscribe_OnActiveModeNotification(nlTestSuite * a
ctx.GetLoopback().mNumMessagesToDrop = chip::Test::LoopbackTransport::kUnlimitedMessageCount;
ctx.GetIOContext().DriveIOUntil(ComputeSubscriptionTimeout(System::Clock::Seconds16(maxInterval)), [&]() { return false; });
NL_TEST_ASSERT(apSuite, callback.mOnResubscriptionsAttempted == 1);
NL_TEST_ASSERT(apSuite, callback.mLastError == CHIP_ERROR_ICD_SUBSCRIBE_INACTIVE_TIMEOUT);
NL_TEST_ASSERT(apSuite, callback.mLastError == CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT);

ctx.GetLoopback().mNumMessagesToDrop = 0;
callback.ClearCounters();
Expand Down
4 changes: 2 additions & 2 deletions src/lib/core/CHIPError.h
Original file line number Diff line number Diff line change
Expand Up @@ -619,13 +619,13 @@ using CHIP_ERROR = ::chip::ChipError;
#define CHIP_ERROR_INVALID_TLV_CHAR_STRING CHIP_CORE_ERROR(0x15)

/**
* @def CHIP_ERROR_ICD_SUBSCRIBE_INACTIVE_TIMEOUT
* @def CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT
*
* @brief
* Subscription timeout caused by LIT ICD device inactive mode
*
*/
#define CHIP_ERROR_ICD_SUBSCRIBE_INACTIVE_TIMEOUT CHIP_CORE_ERROR(0x16)
#define CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT CHIP_CORE_ERROR(0x16)

/**
* @def CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE
Expand Down

0 comments on commit 2560809

Please sign in to comment.