From 97b901d7da4f600f2fa838a141980de70c43d04b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 12 Oct 2015 18:19:58 +0200 Subject: [PATCH] fix gatt_client test --- test/gatt_client/expected_results.h | 5 +++-- test/gatt_client/gatt_client_test.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/gatt_client/expected_results.h b/test/gatt_client/expected_results.h index 4539fd499..170a87543 100644 --- a/test/gatt_client/expected_results.h +++ b/test/gatt_client/expected_results.h @@ -32,7 +32,7 @@ const uint8_t included_services_uuid128_handles[][2] = { uint8_t characteristic_handles[][2]= { {0x26, 0x2a}, {0x2b, 0x2f}, {0x30, 0x32}, {0x33, 0x35}, {0x36, 0x38}, {0x39, 0x3b}, {0x3c, 0x3e}, {0x3f, 0x41}, {0x42, 0x44}, {0x45, 0x47}, - {0x48, 0x49}, {0x4a, 0x4f}, {0x50, 0x51}, {0x52, 0x53} + {0x48, 0x49}, {0x4a, 0x4f}, {0x50, 0x51}, {0x52, 0x53}, {0x54, 0x55} }; uint8_t characteristic_uuids[][16] = { @@ -49,7 +49,8 @@ uint8_t characteristic_uuids[][16] = { {0x00, 0x00, 0xf1, 0x0a, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb}, {0x00, 0x00, 0xf1, 0x0b, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb}, {0x00, 0x00, 0xf1, 0x0d, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb}, - {0x00, 0x00, 0xf1, 0x0c, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb} + {0x00, 0x00, 0xf1, 0x0c, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb}, + {0x00, 0x00, 0xf1, 0x0e, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb}, }; uint8_t indication[] = {GATT_CLIENT_CHARACTERISTICS_CONFIGURATION_NOTIFICATION, 0x00}; diff --git a/test/gatt_client/gatt_client_test.c b/test/gatt_client/gatt_client_test.c index 547c44b9c..b369731dc 100644 --- a/test/gatt_client/gatt_client_test.c +++ b/test/gatt_client/gatt_client_test.c @@ -128,7 +128,7 @@ static void verify_included_services_uuid128(void){ } static void verify_charasteristics(void){ - CHECK_EQUAL(14, result_index); + CHECK_EQUAL(15, result_index); for (int i=0; i