Commit 366dbc33 authored by Xavier Thompson's avatar Xavier Thompson Committed by Jérome Perrin

software/theia: Fix ipv6 range test for local use

parent a8650f9d
...@@ -263,7 +263,8 @@ class TestTheia(TheiaTestCase): ...@@ -263,7 +263,8 @@ class TestTheia(TheiaTestCase):
ipv6, *prefixlen = self._ipv6_address.split('/') ipv6, *prefixlen = self._ipv6_address.split('/')
if not prefixlen: if not prefixlen:
raise unittest.SkipTest('No IPv6 range') raise unittest.SkipTest('No IPv6 range')
elif int(prefixlen[0]) >= 123: elif int(prefixlen[0]) + 16 >= 123:
# Note: prefixlen-theia = prefixlen-sr-testing + 16
raise unittest.SkipTest('IPv6 range too small: %s' % self._ipv6_address) raise unittest.SkipTest('IPv6 range too small: %s' % self._ipv6_address)
with sqlite3.connect(proxy_path) as db: with sqlite3.connect(proxy_path) as db:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment