[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: GNS: Fix dns2gns test with default gnunet.org GNS overri
From: |
gnunet |
Subject: |
[gnunet] 01/02: GNS: Fix dns2gns test with default gnunet.org GNS override we introduced |
Date: |
Wed, 22 Nov 2023 19:02:08 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 20402ca50f0b5a890759377d61071c6184641e97
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Nov 22 19:01:09 2023 +0100
GNS: Fix dns2gns test with default gnunet.org GNS override we introduced
---
src/cli/gns/test_dns2gns.conf | 5 +++--
src/cli/gns/test_dns2gns.sh | 6 ++++--
src/service/gns/gnunet-dns2gns.c | 4 ++--
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/cli/gns/test_dns2gns.conf b/src/cli/gns/test_dns2gns.conf
index f484d4114..2f6bdc797 100644
--- a/src/cli/gns/test_dns2gns.conf
+++ b/src/cli/gns/test_dns2gns.conf
@@ -18,7 +18,7 @@ MAX_PARALLEL_BACKGROUND_QUERIES = 10
DEFAULT_LOOKUP_TIMEOUT = 15 s
RECORD_PUT_INTERVAL = 1 h
ZONE_PUBLISH_TIME_WINDOW = 1 h
-DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0
+.gnunet.org =
[namestore]
IMMEDIATE_START = YES
@@ -65,4 +65,5 @@ IMMEDIATE_START = YES
RUN_PER_USER = YES
BIND_TO = 127.0.0.1
BIND_TO6 = ::1
-OPTIONS = -d 1.1.1.1 -p 12000
+PORT = 12000
+OPTIONS = -d 1.1.1.1
diff --git a/src/cli/gns/test_dns2gns.sh b/src/cli/gns/test_dns2gns.sh
index 295bcc766..a6024ca3c 100755
--- a/src/cli/gns/test_dns2gns.sh
+++ b/src/cli/gns/test_dns2gns.sh
@@ -20,7 +20,7 @@ MY_EGO="localego"
TEST_IP="127.0.0.1"
TEST_IPV6="dead::beef"
LABEL="fnord"
-TEST_DOMAIN="gnunet.org"
+TEST_DOMAIN="taler.net"
gnunet-arm -s -c test_dns2gns.conf
PKEY=`gnunet-identity -V -C $MY_EGO -c test_dns2gns.conf`
@@ -34,14 +34,16 @@ if nslookup -port=12000 $LABEL.$PKEY localhost && nslookup
-port=12000 $LABEL.$M
echo "PASS: GNS records can be resolved using dns2gns bridge"
else
echo "FAIL: GNS records can't be resolved using dns2gns bridge"
+ gnunet-arm -e -c test_dns2gns.conf
rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME`
exit 1
fi
-if nslookup -port=12000 gnunet.org localhost; then
+if nslookup -port=12000 $TEST_DOMAIN localhost; then
echo "PASS: DNS records can be resolved using dns2gns bridge"
else
echo "FAIL: DNS records can't be resolved using dns2gns bridge"
+ gnunet-arm -e -c test_dns2gns.conf
rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME`
exit 1
fi
diff --git a/src/service/gns/gnunet-dns2gns.c b/src/service/gns/gnunet-dns2gns.c
index 04d320c62..8706bec3a 100644
--- a/src/service/gns/gnunet-dns2gns.c
+++ b/src/service/gns/gnunet-dns2gns.c
@@ -750,7 +750,7 @@ read_dns4 (void *cls)
"recvfrom");
return;
}
- GNUNET_break (size == sret);
+ GNUNET_break (size != sret);
handle_request (listen_socket4,
&v4,
addrlen,
@@ -803,7 +803,7 @@ read_dns6 (void *cls)
"recvfrom");
return;
}
- GNUNET_break (size == sret);
+ GNUNET_break (size != sret);
handle_request (listen_socket6,
&v6,
addrlen,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.