diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-27 04:07:19 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-27 04:07:19 +0200 |
| commit | f82ca77348bb8e025240bab1003ae697e27617e2 (patch) | |
| tree | cd1ee70735a1a01de6454db188abe263f4905b60 /test | |
| parent | 10eab813d70a203e5b81583eac165e33a1bf6f6d (diff) | |
responding to pings
Diffstat (limited to 'test')
| -rwxr-xr-x | test/module/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/module/test.py b/test/module/test.py index e78f932..9a20345 100755 --- a/test/module/test.py +++ b/test/module/test.py @@ -1,4 +1,4 @@ -import time +import gevent import importlib.util spec = importlib.util.spec_from_file_location("CortexRPC", "../../rpc/rpc.py") rpc_module = importlib.util.module_from_spec(spec) @@ -23,7 +23,7 @@ if __name__ == '__main__': while 1: print('{}...'.format(i)) i = i+1 - time.sleep(1) + gevent.sleep(1) return 'ready' def process_cmd(cmd, payload): |
