aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/message.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/message.c b/tests/message.c
index 4dfc9921..05d9b2e1 100644
--- a/tests/message.c
+++ b/tests/message.c
@@ -1,5 +1,5 @@
//
-// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -24,6 +24,10 @@ TestMain("Message Tests", {
Reset({ nng_msg_free(msg); });
+ Convey("Get opt returns ENOTSUP", {
+ So(nng_msg_getopt(msg, 0, NULL, NULL) == NNG_ENOTSUP);
+ });
+
Convey("Lengths are empty", {
So(nng_msg_len(msg) == 0);
So(nng_msg_header_len(msg) == 0);
@@ -197,12 +201,6 @@ TestMain("Message Tests", {
So(nng_pipe_id(p) == 0x22222222);
});
- Convey("Missing option fails properly", {
- char buf[128];
- size_t sz = sizeof(buf);
- So(nng_msg_getopt(msg, 4545, buf, &sz) == NNG_ENOENT);
- });
-
Convey("Uint32 body operations work", {
uint32_t v;
So(nng_msg_append_u32(msg, 2) == 0);