Skip to content

Commit

Permalink
Added stop torchserve to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mreso committed Jun 3, 2024
1 parent 5f87195 commit 1ce8bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def test_stateful_mar(mar_file_path, model_store):

# Clean up files
shutil.rmtree(Path(model_store) / model_name)
test_utils.stop_torchserve()


def __infer_stateful(model_name, sequence_id, expected):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def test_infer_stateful(mar_file_path, model_store):

# Clean up files
shutil.rmtree(Path(model_store) / model_name)
test_utils.stop_torchserve()


def test_infer_stateful_end(mar_file_path, model_store):
Expand Down Expand Up @@ -191,6 +192,7 @@ def test_infer_stateful_end(mar_file_path, model_store):

# Clean up files
shutil.rmtree(Path(model_store) / model_name)
test_utils.stop_torchserve()


def test_infer_stateful_cancel(mar_file_path, model_store):
Expand Down Expand Up @@ -255,6 +257,7 @@ def test_infer_stateful_cancel(mar_file_path, model_store):

# Clean up files
shutil.rmtree(Path(model_store) / model_name)
test_utils.stop_torchserve()


def __infer_stateful(model_name, sequence_id, expected):
Expand Down

0 comments on commit 1ce8bf0

Please sign in to comment.