Skip to content

Commit

Permalink
Failing test shouldn't fail anymore!
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin committed Jul 11, 2023
1 parent e38a570 commit 64b45ac
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/server/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,8 @@ def client(self):
yield TestClient(app)

def test_static_batch_errors_on_wrong_batch_size(self, client):
with pytest.raises(
RuntimeError,
match=(
"batch size of 1 passed into pipeline is "
"not divisible by model batch size of 2"
),
):
client.post("/predict/static-batch", json={"sequences": "today is great"})
# this is okay because we can pad batches now
client.post("/predict/static-batch", json={"sequences": "today is great"})

def test_static_batch_good_request(self, client):
response = client.post(
Expand Down

0 comments on commit 64b45ac

Please sign in to comment.