Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update test health check #57

Merged
merged 2 commits into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/plugin/sw_django/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def setUpClass(cls):
cls.compose.wait_for(cls.url(('consumer', '9090'), 'users?test=test1&test=test2&test2=test2'))

def test_plugin(self):
time.sleep(3)
time.sleep(10)

self.validate()

Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/sw_flask/test_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def setUpClass(cls):
cls.compose.wait_for(cls.url(('consumer', '9090'), 'users?test=test1&test=test2&test2=test2'))

def test_plugin(self):
time.sleep(3)
time.sleep(10)

self.validate()
response = requests.get(TestPlugin.url(('consumer', '9090'), 'users'))
Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/sw_http/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestPlugin(BasePluginTest):
def test_plugin(self):
print('traffic: ', requests.post(url=self.url(('consumer', '9090'))))

time.sleep(3)
time.sleep(10)

self.validate()

Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/sw_http_wsgi/test_http_wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestPlugin(BasePluginTest):
def test_plugin(self):
print('traffic: ', requests.post(url=self.url(('consumer', '9090'))))

time.sleep(3)
time.sleep(10)

self.validate()

Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/sw_kafka/test_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUpClass(cls):
cls.compose.wait_for(cls.url(('producer', '9090'), 'users'))

def test_request_plugin(self):
time.sleep(3)
time.sleep(10)

self.validate(expected_file_name=os.path.join(dirname(abspath(__file__)), 'expected.data.yml'))

Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/sw_pymysql/test_pymysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUpClass(cls):
cls.compose.wait_for(cls.url(('consumer', '9090'), 'users'))

def test_request_plugin(self):
time.sleep(3)
time.sleep(10)

self.validate(expected_file_name=os.path.join(dirname(abspath(__file__)), 'expected.data.yml'))

Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/sw_rabbitmq/test_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUpClass(cls):
cls.compose.wait_for(cls.url(('producer', '9090'), 'users'))

def test_request_plugin(self):
time.sleep(3)
time.sleep(10)

self.validate(expected_file_name=os.path.join(dirname(abspath(__file__)), 'expected.data.yml'))

Expand Down
1 change: 1 addition & 0 deletions tests/plugin/sw_redis/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@ services:
provider:
condition: service_healthy


networks:
beyond:
2 changes: 1 addition & 1 deletion tests/plugin/sw_redis/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUpClass(cls):
cls.compose.wait_for(cls.url(('consumer', '9090'), 'users'))

def test_request_plugin(self):
time.sleep(3)
time.sleep(10)

self.validate(expected_file_name=os.path.join(dirname(abspath(__file__)), 'expected.data.yml'))

Expand Down
1 change: 1 addition & 0 deletions tests/plugin/sw_requests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ services:
provider:
condition: service_healthy


networks:
beyond:
2 changes: 1 addition & 1 deletion tests/plugin/sw_requests/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestPlugin(BasePluginTest):
def test_plugin(self):
print('traffic: ', requests.post(url=self.url(('consumer', '9090'))))

time.sleep(3)
time.sleep(10)

self.validate()

Expand Down
2 changes: 1 addition & 1 deletion tests/plugin/sw_tornado/test_tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def setUpClass(cls):
cls.compose.wait_for(cls.url(('consumer', '9090'), 'users'))

def test_plugin(self):
time.sleep(3)
time.sleep(10)

self.validate()

Expand Down