Prechádzať zdrojové kódy

Log connection timeouts properly (#4133)

Nate 6 rokov pred
rodič
commit
9aa1460c24
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  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,