Explorar o código

Downgrade some of the new checks to warnings

Hamilton Turner %!s(int64=11) %!d(string=hai) anos
pai
achega
5f73b59534
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      toolset/benchmark/test_types/query_type.py

+ 6 - 2
toolset/benchmark/test_types/query_type.py

@@ -30,11 +30,15 @@ class QueryTestType(DBTestType):
     body = self._curl(url + '0')
     body = self._curl(url + '0')
     problems += self._verifyQueryList(1, body, url + '0', 'warn')
     problems += self._verifyQueryList(1, body, url + '0', 'warn')
 
 
+    # Note: A number of tests fail here because they only parse for 
+    # a number and crash on 'foo'. If they fail and 500 (or empty response)
+    # then it's marked as a failure. If they return a list of size != 1 
+    # then it's only a warning
     body = self._curl(url + 'foo')
     body = self._curl(url + 'foo')
-    problems += self._verifyQueryList(1, body, url + 'foo')
+    problems += self._verifyQueryList(1, body, url + 'foo', 'warn')
 
 
     body = self._curl(url + '501')
     body = self._curl(url + '501')
-    problems += self._verifyQueryList(500, body, url + '501')
+    problems += self._verifyQueryList(500, body, url + '501', 'warn')
 
 
     if len(problems) == 0:
     if len(problems) == 0:
       return [('pass','',url + '2'),
       return [('pass','',url + '2'),