1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Merge pull request #3 from micw/fix-random-failures

Change test hostnames for stable test results
This commit is contained in:
kaiyou 2019-08-25 11:51:18 +02:00 committed by Alexander Graf
parent 7f6d51904b
commit b198fde756
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629
2 changed files with 5 additions and 4 deletions

1
core/base/libs/socrate/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
__pycache__/

View File

@ -69,12 +69,12 @@ class TestSystem(unittest.TestCase):
def test_resolve_hostname(self):
self.assertEqual(
system.resolve_hostname("one.one.one.one"),
"1.1.1.1"
system.resolve_hostname("1.2.3.4.xip.io"),
"1.2.3.4"
)
def test_resolve_address(self):
self.assertEqual(
system.resolve_address("one.one.one.one:80"),
"1.1.1.1:80"
system.resolve_address("1.2.3.4.xip.io:80"),
"1.2.3.4:80"
)