Переглянути джерело

Log connection timeouts properly (#4133)

Nate 6 роки тому
батько
коміт
9aa1460c24
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      toolset/benchmark/framework_test.py

+ 6 - 0
toolset/benchmark/framework_test.py

@@ -124,6 +124,12 @@ class FrameworkTest:
                     log("Verifying test %s for %s caused an exception: %s" %
                         (test_type, self.name, e),
                         color=Fore.RED)
+                except Timeout as e:
+                    results = [('fail', "Connection to server timed out",
+                                base_url)]
+                    log("Verifying test %s for %s caused an exception: %s" %
+                        (test_type, self.name, e),
+                        color=Fore.RED)
                 except Exception as e:
                     results = [('fail', """Caused Exception in TFB
             This almost certainly means your return value is incorrect,