aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/survey0/respond_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/survey0/respond_test.c')
-rw-r--r--src/protocol/survey0/respond_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocol/survey0/respond_test.c b/src/protocol/survey0/respond_test.c
index 3c211843..2801222c 100644
--- a/src/protocol/survey0/respond_test.c
+++ b/src/protocol/survey0/respond_test.c
@@ -507,6 +507,7 @@ test_resp_ttl_option(void)
TEST_NNG_PASS(nng_setopt_int(resp, opt, 1));
TEST_NNG_FAIL(nng_setopt_int(resp, opt, 0), NNG_EINVAL);
TEST_NNG_FAIL(nng_setopt_int(resp, opt, -1), NNG_EINVAL);
+ TEST_NNG_FAIL(nng_setopt_int(resp, opt, 16), NNG_EINVAL);
TEST_NNG_FAIL(nng_setopt_int(resp, opt, 256), NNG_EINVAL);
TEST_NNG_PASS(nng_setopt_int(resp, opt, 3));
TEST_NNG_PASS(nng_getopt_int(resp, opt, &v));