[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/01: fix UDP test
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/01: fix UDP test |
Date: |
Mon, 24 Nov 2014 23:03:02 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch maint
in repository gnuradio.
commit 689f507e9d5cbbac76742f5515ec925067e92bfb
Author: Jiří Pinkava <address@hidden>
Date: Mon Nov 24 09:28:15 2014 +0100
fix UDP test
After allowing IPv6 UDP test may fail because 'localhost' can be resolved
as ::1
whereas UDP server listens on IPv4 interface. This enforces IPv4 also for
client
---
gr-blocks/python/blocks/qa_udp_source_sink.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gr-blocks/python/blocks/qa_udp_source_sink.py
b/gr-blocks/python/blocks/qa_udp_source_sink.py
index a8dcdef..905b9e0 100644
--- a/gr-blocks/python/blocks/qa_udp_source_sink.py
+++ b/gr-blocks/python/blocks/qa_udp_source_sink.py
@@ -89,7 +89,7 @@ class test_udp_sink_source(gr_unittest.TestCase):
rcv_port = udp_rcv.get_port()
udp_snd = blocks.udp_sink(gr.sizeof_float, '127.0.0.1', port)
- udp_snd.connect('localhost', rcv_port)
+ udp_snd.connect('127.0.0.1', rcv_port)
n_data = 16
src_data = [float(x) for x in range(n_data)]