Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfd committed Apr 1, 2024
1 parent b9ed786 commit 5e61402
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lotordb/test/test_lotordb.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
def test_lotordb_key() -> None:
time.sleep(0.1)
t = time.perf_counter()
ServerRunnable('127.0.0.1', 7335, test=True, dbtype='key')
ClientRunnable('127.0.0.1', 7335, dbtype='key')
ServerRunnable('127.0.0.1', 1337, test=True, dbtype='key')
time.sleep(0.1)
ClientRunnable('127.0.0.1', 1337, dbtype='key')
print('time {:.4f}'.format(time.perf_counter() - t))


# def test_lotordb_db() -> None:
# time.sleep(0.1)
# t = time.perf_counter()
# ServerRunnable('127.0.0.1', 7331, test=True, dbtype='db')
# ClientRunnable('127.0.0.1', 7331, dbtype='db')
# print('time {:.4f}'.format(time.perf_counter() - t))
def test_lotordb_db() -> None:
time.sleep(0.1)
t = time.perf_counter()
ServerRunnable('127.0.0.1', 1337, test=True, dbtype='db')
time.sleep(0.1)
ClientRunnable('127.0.0.1', 1337, dbtype='db')
print('time {:.4f}'.format(time.perf_counter() - t))


if __name__ == '__main__':
Expand Down

0 comments on commit 5e61402

Please sign in to comment.