diff --git a/tests/schains/monitor/containers_test.py b/tests/schains/monitor/containers_test.py index a9535396..8bca146b 100644 --- a/tests/schains/monitor/containers_test.py +++ b/tests/schains/monitor/containers_test.py @@ -78,6 +78,9 @@ def test_monitor_schain_container_ec( # To make sure container initializaed time.sleep(2) + run_custom_schain_container(dutils, schain.name, entrypoint=['sh', 'exit', '1']) + # To make sure container initializaed + time.sleep(2) with mock.patch('core.schains.monitor.containers.is_volume_exists', return_value=True): schain_record.set_failed_rpc_count(100) schain_record.set_restart_count(0) diff --git a/tests/schains/monitor/rpc_test.py b/tests/schains/monitor/rpc_test.py index 8d93158b..07a7f9ba 100644 --- a/tests/schains/monitor/rpc_test.py +++ b/tests/schains/monitor/rpc_test.py @@ -1,6 +1,6 @@ import datetime -import json import time +import json from unittest import mock import freezegun