]> www.average.org Git - loctrkd.git/blobdiff - test/test_storage.py
test: use IPv4 because github actions
[loctrkd.git] / test / test_storage.py
index 7101c1aae422ffa0225f40e40d907933d56ff170..994e3b1bf840b9ac7fa63d95221ed5f4c69dda8e 100644 (file)
@@ -1,7 +1,7 @@
 """ Send junk to the collector """
 
 from random import Random
-from socket import getaddrinfo, socket, AF_INET6, SOCK_STREAM
+from socket import getaddrinfo, socket, AF_INET, SOCK_STREAM
 from sqlite3 import connect, Row
 from time import sleep
 import unittest
@@ -13,13 +13,13 @@ class Storage(TestWithServers):
     def setUp(self, *args: str) -> None:
         super().setUp("collector", "storage", "lookaside", "termconfig")
         for fam, typ, pro, cnm, skadr in getaddrinfo(
-            "::1",
+            "127.0.0.1",
             self.conf.getint("collector", "port"),
-            family=AF_INET6,
+            family=AF_INET,
             type=SOCK_STREAM,
         ):
             break  # Just take the first element
-        self.sock = socket(AF_INET6, SOCK_STREAM)
+        self.sock = socket(AF_INET, SOCK_STREAM)
         self.sock.connect(skadr)
 
     def tearDown(self) -> None: