Skip to content

Commit

Permalink
chore: address warning and fix loopback
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Sep 28, 2022
1 parent 79d9901 commit 713461b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bentoml/testing/grpc/__init__.py
Expand Up @@ -185,7 +185,7 @@ async def create_channel(
@cached_contextmanager("{interceptors}")
def make_standalone_server(
interceptors: t.Sequence[aio.ServerInterceptor] | None = None,
host: str = "127.0.0.1",
host: str = "0.0.0.0",
) -> t.Generator[tuple[aio.Server, str], None, None]:
"""
Create a standalone aio.Server for testing.
Expand Down
1 change: 0 additions & 1 deletion bentoml/testing/server.py
Expand Up @@ -345,7 +345,6 @@ def run_bento_server_distributed(
copied["HTTP_PROXY"] = f"http://127.0.0.1:{proxy_port}"
if config_file is not None:
copied["BENTOML_CONFIG"] = os.path.abspath(config_file)
print(copied)

runner_map = {}
processes: list[subprocess.Popen[str]] = []
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/_internal/io/test_numpy.py
Expand Up @@ -198,7 +198,7 @@ async def test_exception_to_proto():
np.array("asdf")
)
with pytest.raises(BadInput):
await NumpyNdarray(dtype=np.generic).to_proto(np.array("asdf"))
await NumpyNdarray(dtype=np.dtype(np.void)).to_proto(np.array("asdf"))


@pytest.mark.asyncio
Expand Down

0 comments on commit 713461b

Please sign in to comment.