diff --git a/act/artifactcache/handler_test.go b/act/artifactcache/handler_test.go index fdb807ad..183a462f 100644 --- a/act/artifactcache/handler_test.go +++ b/act/artifactcache/handler_test.go @@ -158,7 +158,7 @@ func TestHandler(t *testing.T) { req.Header.Set("Content-Range", "bytes 0-99/*") resp, err := httpClient.Do(req) require.NoError(t, err) - assert.Equal(t, 400, resp.StatusCode) + assert.Equal(t, 404, resp.StatusCode) }) t.Run("upload with complete", func(t *testing.T) { @@ -260,7 +260,7 @@ func TestHandler(t *testing.T) { { resp, err := httpClient.Post(fmt.Sprintf("%s/caches/%d", base, 100), "", nil) require.NoError(t, err) - assert.Equal(t, 400, resp.StatusCode) + assert.Equal(t, 404, resp.StatusCode) } })