Clear inmemory chache when terminating test

This commit is contained in:
keisuke-umezawa
2024-01-08 13:37:54 +09:00
parent 6b05c98f35
commit be2c3340e5
4 changed files with 3 additions and 6 deletions
+3
View File
@@ -8,6 +8,8 @@ import optuna
from optuna_dashboard import wsgi
import pytest
from .utils import clear_inmemory_cache
def get_free_port() -> int:
tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@@ -28,6 +30,7 @@ def make_test_server(
thread.start()
def stop_server() -> None:
clear_inmemory_cache()
httpd.shutdown()
httpd.server_close()
thread.join()