Browse Source

Clarify plaintext length warning

Hamilton Turner 10 years ago
parent
commit
c1093e7f29
1 changed files with 2 additions and 2 deletions
  1. 2 2
      toolset/benchmark/test_types/plaintext_type.py

+ 2 - 2
toolset/benchmark/test_types/plaintext_type.py

@@ -23,8 +23,8 @@ class PlaintextTestType(FrameworkTestType):
       return [('fail', "Could not find 'Hello, World!' in response", url)]
 
     if len("hello, world!") < len(body):
-      return [('warn', '''Server is returning more data than is required.
-        This may negatively affect benchmark performance''', url)]
+      return [('warn', """Server is returning %s more bytes than are required.
+        This may negatively affect benchmark performance""" % (len(body) - len("hello, world!")), url)]
 
     return [('pass', '', url)]