2
0
Fork 0

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

personal/stbuehler/wip
Stefan Bühler 2014-05-22 13:02:25 +02:00
parent 928d5dcb5e
commit 55042a89a9
1 changed files with 7 additions and 0 deletions

View File

@ -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,