Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Dec 12, 2024
1 parent c3c9779 commit 20f8db3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/tests/prediction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io"
"net/http"
"testing"
"time"

"github.com/replicate/go/must"

Expand Down Expand Up @@ -97,6 +98,7 @@ func TestPredictionCrash(t *testing.T) {
assert.Equal(t, http.StatusInternalServerError, resp.StatusCode)
body := string(must.Get(io.ReadAll(resp.Body)))
assert.Equal(t, "Internal Server Error", body)
time.Sleep(time.Second)
assert.Equal(t, "DEFUNCT", ct.HealthCheck().Status)
} else {
resp := ct.Prediction(map[string]any{"i": 1, "s": "bar"})
Expand Down

0 comments on commit 20f8db3

Please sign in to comment.