From 6e7a091e395da3b48d7b2d042c5b072d62f17a17 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Wed, 3 Jun 2020 14:14:21 +0200 Subject: [PATCH] Fix SNTP example test to match pattern --- examples/protocols/sntp/example_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/protocols/sntp/example_test.py b/examples/protocols/sntp/example_test.py index 8be76e0ba..0f04189c9 100644 --- a/examples/protocols/sntp/example_test.py +++ b/examples/protocols/sntp/example_test.py @@ -18,7 +18,7 @@ def test_examples_sntp(env, extra_data): timeout=60) TIME_FORMAT = '%a %b %d %H:%M:%S %Y' - TIME_FORMAT_REGEX = r'\w+ \w+ \d{1,2} \d{2}:\d{2}:\d{2} \d{4}' + TIME_FORMAT_REGEX = r'\w+\s+\w+\s+\d{1,2}\s+\d{2}:\d{2}:\d{2} \d{4}' TIME_DIFF = datetime.timedelta(seconds=10 + 2) # cpu spends 10 seconds in deep sleep NY_time = None SH_time = None