[tests] Fix some unit tests random fail issue (#1966)

This commit is contained in:
Shu Chen
2017-07-07 06:40:07 -07:00
committed by Jonathan Hui
parent 19d9b6c371
commit 93f892bdbe
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -52,6 +52,7 @@ Dataset::Dataset(const Tlv::Type aType) :
mLength(0),
mType(aType)
{
memset(mTlvs, 0, sizeof(mTlvs));
}
void Dataset::Clear(void)
+1 -1
View File
@@ -495,7 +495,7 @@ exit:
(void)aValue;
(void)aValueLength;
return OT_ERROR_NONE;
return OT_ERROR_NOT_FOUND;
}
otError otPlatSettingsSet(otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength)