Skip to content

Commit

Permalink
fixup! update for API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kb2ma committed May 15, 2018
1 parent 30e3ff5 commit 634a7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittests/tests-nanocoap/tests-nanocoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void test_nanocoap__get_req(void)
coap_get_uri(&pkt, (uint8_t *)&uri[0]);
TEST_ASSERT_EQUAL_STRING((char *)path, (char *)uri);

len = coap_opt_finish(&pkt, false);
len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE);
TEST_ASSERT_EQUAL_INT(total_hdr_len + total_opt_len, len);
}

Expand Down Expand Up @@ -113,7 +113,7 @@ static void test_nanocoap__put_req(void)
TEST_ASSERT_EQUAL_INT(fmt_opt_len, len);
TEST_ASSERT_EQUAL_INT(COAP_FORMAT_TEXT, coap_get_content_type(&pkt));

len = coap_opt_finish(&pkt, true);
len = coap_opt_finish(&pkt, COAP_OPT_FINISH_PAYLOAD);
TEST_ASSERT_EQUAL_INT(total_hdr_len + uri_opt_len + fmt_opt_len + 1, len);
TEST_ASSERT_EQUAL_INT(0xFF, *(pkt.payload - 1));
TEST_ASSERT_EQUAL_INT(&buf[0] + 128 - pkt.payload, pkt.payload_len);
Expand Down

0 comments on commit 634a7b1

Please sign in to comment.