mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Merge pull request #3 from micw/fix-random-failures
Change test hostnames for stable test results
This commit is contained in:
parent
7f6d51904b
commit
b198fde756
1
core/base/libs/socrate/.gitignore
vendored
Normal file
1
core/base/libs/socrate/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
__pycache__/
|
@ -69,12 +69,12 @@ class TestSystem(unittest.TestCase):
|
|||||||
|
|
||||||
def test_resolve_hostname(self):
|
def test_resolve_hostname(self):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
system.resolve_hostname("one.one.one.one"),
|
system.resolve_hostname("1.2.3.4.xip.io"),
|
||||||
"1.1.1.1"
|
"1.2.3.4"
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_resolve_address(self):
|
def test_resolve_address(self):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
system.resolve_address("one.one.one.one:80"),
|
system.resolve_address("1.2.3.4.xip.io:80"),
|
||||||
"1.1.1.1:80"
|
"1.2.3.4:80"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user