diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-01-19 09:41:12 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-01-19 09:41:12 -0800 |
| commit | 15f5a7d8cee6416bf4748d15f97ac59c13c2ac75 (patch) | |
| tree | b93041d73c186ffe6e4cb7dd2541bf34ff659b77 /tests | |
| parent | 0ace5d416cd77898b19bc124881aff4f5151f12f (diff) | |
| download | nng-15f5a7d8cee6416bf4748d15f97ac59c13c2ac75.tar.gz nng-15f5a7d8cee6416bf4748d15f97ac59c13c2ac75.tar.bz2 nng-15f5a7d8cee6416bf4748d15f97ac59c13c2ac75.zip | |
fixes #1145 nng_msg options should be removed
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/message.c | 12 |
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); |
