From b198fde75692387daebddbe4235aa811b0d81697 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 25 Aug 2019 11:51:18 +0200 Subject: [PATCH] Merge pull request #3 from micw/fix-random-failures Change test hostnames for stable test results --- core/base/libs/socrate/.gitignore | 1 + core/base/libs/socrate/test.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 core/base/libs/socrate/.gitignore diff --git a/core/base/libs/socrate/.gitignore b/core/base/libs/socrate/.gitignore new file mode 100644 index 00000000..c18dd8d8 --- /dev/null +++ b/core/base/libs/socrate/.gitignore @@ -0,0 +1 @@ +__pycache__/ diff --git a/core/base/libs/socrate/test.py b/core/base/libs/socrate/test.py index efdcb343..b9b36d5f 100644 --- a/core/base/libs/socrate/test.py +++ b/core/base/libs/socrate/test.py @@ -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" )