Browse Source

tests: Make ap_wps_er_http_proto less likely to fail

The test step for concurrent HTTP connections seems to be failing quite
frequently when running in a virtual machine with run-tests.py (but not
that much with kvm and vm-run.sh). The failures are due to only 8 or 9
sockets getting a response from the HTTP server. This is sufficient for
testing purposes, to drop the pass criterium from 10 to 8 concurrent
connections. This avoids unnecessary test failures and also allows the
rest of the test case to be performed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 8 years ago
parent
commit
6f9b4de228
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/hwsim/test_ap_wps.py

+ 3 - 1
tests/hwsim/test_ap_wps.py

@@ -4450,11 +4450,13 @@ RGV2aWNlIEEQSQAGADcqAAEg
             res = socks[i].recv(100)
             if "HTTP/1" in res:
                 count += 1
+            else:
+                logger.info("recv[%d]: len=%d" % (i, len(res)))
         except:
             pass
         socks[i].close()
     logger.info("%d concurrent HTTP GET operations returned response" % count)
-    if count < 10:
+    if count < 8:
         raise Exception("Too few concurrent HTTP connections accepted")
 
     logger.info("OOM in HTTP server")