Преглед на файлове

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,