From 15f5a7d8cee6416bf4748d15f97ac59c13c2ac75 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 19 Jan 2020 09:41:12 -0800 Subject: fixes #1145 nng_msg options should be removed --- tests/message.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'tests/message.c') 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. +// Copyright 2020 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // 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); -- cgit v1.2.3-70-g09d2