mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 22:39:05 +03:00
tests/test_uri.c: Update to use uri_path instead of key for resource hash.
This commit is contained in:
1 parent
14a2dc5b0b
commit
1d61c32fee
1 file changed
+4
-5
+4
-5
@@ -338,12 +338,11 @@ t_parse_uri13(void) {
|
||||
.used_size = sizeof(teststr)
|
||||
};
|
||||
|
||||
coap_key_t key;
|
||||
str *uri_path = coap_get_uri_path(&pdu);
|
||||
|
||||
coap_hash_request_uri(&pdu, key);
|
||||
|
||||
CU_ASSERT(sizeof(key) == sizeof(COAP_DEFAULT_WKC_HASHKEY) - 1);
|
||||
CU_ASSERT_NSTRING_EQUAL(key, COAP_DEFAULT_WKC_HASHKEY, sizeof(key));
|
||||
CU_ASSERT(uri_path->length == sizeof(COAP_DEFAULT_URI_WELLKNOWN)-1);
|
||||
CU_ASSERT_NSTRING_EQUAL(uri_path->s, COAP_DEFAULT_URI_WELLKNOWN,
|
||||
sizeof(COAP_DEFAULT_URI_WELLKNOWN)-1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in new issue
Block a user