nimble/test: Fix expected error for key size lower than minimum

For key size lower than minimum, an "Encryption Key Size" error shall
be returned, not "Invalid Parameters".

X-Original-Commit: c3f9aa1968a483183de60ad9a8bf43545fa0c36a
This commit is contained in:
Andrzej Kaczmarek
2016-12-12 23:58:38 +01:00
parent 7b56d698d5
commit 13fc8a872e
+2 -2
View File
@@ -202,7 +202,7 @@ TEST_CASE(ble_sm_test_case_peer_fail_inval)
.resp_key_dist = 0x07,
} }),
((struct ble_sm_pair_fail[1]) { {
.reason = BLE_SM_ERR_INVAL,
.reason = BLE_SM_ERR_ENC_KEY_SZ,
} })
);
@@ -457,7 +457,7 @@ TEST_CASE(ble_sm_test_case_us_fail_inval)
.resp_key_dist = 0x07,
},
.pair_fail = (struct ble_sm_pair_fail) {
.reason = BLE_SM_ERR_INVAL,
.reason = BLE_SM_ERR_ENC_KEY_SZ,
},
};
ble_sm_test_util_us_fail_inval(&params);