Skip to content

Commit

Permalink
fixup! tests/nanocoap: add unit test for Accept option helper
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Oct 19, 2022
1 parent c1a09bc commit 9797198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/tests-nanocoap/tests-nanocoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static void test_nanocoap__put_req(void)
TEST_ASSERT_EQUAL_INT(COAP_FORMAT_CBOR, coap_get_accept(&pkt));

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

0 comments on commit 9797198

Please # to comment.