From 13fc8a872ebd5335b8fcebeb490d9587211d084a Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Sun, 11 Dec 2016 23:46:14 +0100 Subject: [PATCH] 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 --- nimble/host/test/src/ble_sm_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/host/test/src/ble_sm_test.c b/nimble/host/test/src/ble_sm_test.c index a98f4bb11..5fd6c3d77 100644 --- a/nimble/host/test/src/ble_sm_test.c +++ b/nimble/host/test/src/ble_sm_test.c @@ -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(¶ms);