Преглед изворни кода

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" %
                     log("Verifying test %s for %s caused an exception: %s" %
                         (test_type, self.name, e),
                         (test_type, self.name, e),
                         color=Fore.RED)
                         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:
                 except Exception as e:
                     results = [('fail', """Caused Exception in TFB
                     results = [('fail', """Caused Exception in TFB
             This almost certainly means your return value is incorrect,
             This almost certainly means your return value is incorrect,