aboutsummaryrefslogtreecommitdiff
path: root/src/core/url_test.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-18 20:24:16 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-18 20:24:16 -0800
commit600f81148be4d08b6b1c308165b3eff1c30ac216 (patch)
treed17ca1570a484182d333df2f1060137c6fdc4134 /src/core/url_test.c
parent143b6322f8217cfdbef8f3171d55d10348d1be37 (diff)
downloadnng-600f81148be4d08b6b1c308165b3eff1c30ac216.tar.gz
nng-600f81148be4d08b6b1c308165b3eff1c30ac216.tar.bz2
nng-600f81148be4d08b6b1c308165b3eff1c30ac216.zip
url: Use NNG_EINVAL for parse failures
Diffstat (limited to 'src/core/url_test.c')
-rw-r--r--src/core/url_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/url_test.c b/src/core/url_test.c
index 182121d9..4de9d4c2 100644
--- a/src/core/url_test.c
+++ b/src/core/url_test.c
@@ -41,7 +41,7 @@ test_url_host_too_long(void)
for (size_t i = strlen(buffer); i < sizeof(buffer) - 1; i++) {
buffer[i] = 'a';
}
- NUTS_FAIL(nng_url_parse(&url, buffer), NNG_EADDRINVAL);
+ NUTS_FAIL(nng_url_parse(&url, buffer), NNG_EINVAL);
}
void