[tests] add a 0.2 second sleep before testing memcache lookup after store

personal/stbuehler/wip
Stefan Bühler 8 years ago
parent 928d5dcb5e
commit 55042a89a9
  1. 7
      tests/t-memcached.py

@ -6,6 +6,7 @@ from service import Service
import socket
import os
import base
import time
class Memcached(Service):
@ -45,6 +46,12 @@ class TestLookup1(CurlRequest):
EXPECT_RESPONSE_CODE = 200
EXPECT_RESPONSE_HEADERS = [("X-Memcached-Hit", "true")]
def Run(self):
# storing might take some time: only after the request is actually
# finished does lighttpd start the memcache connection to store it
time.sleep(0.2)
return super(TestLookup1, self).Run()
class Test(GroupTest):
group = [
TestStore1,

Loading…
Cancel
Save