@@ -139,7 +139,7 @@ void TestTimedHandler::TestFollowingMessageFastEnough(MsgType aMsgType)
139
139
EXPECT_EQ (delegate.mError , CHIP_NO_ERROR);
140
140
141
141
// Send an empty payload, which will error out but not with the
142
- // UNSUPPORTED_ACCESS status we expect if we miss our timeout.
142
+ // TIMEOUT status we expect if we miss our timeout.
143
143
payload = MessagePacketBuffer::New (0 );
144
144
ASSERT_FALSE (payload.IsNull ());
145
145
@@ -151,7 +151,7 @@ void TestTimedHandler::TestFollowingMessageFastEnough(MsgType aMsgType)
151
151
mpTestContext->DrainAndServiceIO ();
152
152
EXPECT_TRUE (delegate.mNewMessageReceived );
153
153
EXPECT_TRUE (delegate.mLastMessageWasStatus );
154
- EXPECT_NE (StatusIB (delegate.mError ).mStatus , Status::UnsupportedAccess );
154
+ EXPECT_NE (StatusIB (delegate.mError ).mStatus , Status::Timeout );
155
155
}
156
156
157
157
TEST_F (TestTimedHandler, TestInvokeFastEnough)
@@ -189,7 +189,7 @@ void TestTimedHandler::TestFollowingMessageTooSlow(MsgType aMsgType)
189
189
chip::test_utils::SleepMillis (75 );
190
190
191
191
// Send an empty payload, which will error out but not with the
192
- // UNSUPPORTED_ACCESS status we expect if we miss our timeout.
192
+ // TIMEOUT status we expect if we miss our timeout.
193
193
payload = MessagePacketBuffer::New (0 );
194
194
EXPECT_FALSE (payload.IsNull ());
195
195
@@ -201,7 +201,7 @@ void TestTimedHandler::TestFollowingMessageTooSlow(MsgType aMsgType)
201
201
mpTestContext->DrainAndServiceIO ();
202
202
EXPECT_TRUE (delegate.mNewMessageReceived );
203
203
EXPECT_TRUE (delegate.mLastMessageWasStatus );
204
- EXPECT_EQ (StatusIB (delegate.mError ).mStatus , Status::UnsupportedAccess );
204
+ EXPECT_EQ (StatusIB (delegate.mError ).mStatus , Status::Timeout );
205
205
}
206
206
207
207
TEST_F (TestTimedHandler, TestInvokeTooSlow)
0 commit comments