From 60659ccc2aee9a67fef42b4d07a7b4f979687cc9 Mon Sep 17 00:00:00 2001 From: Aarsh Shah Date: Tue, 13 Sep 2022 10:49:27 +0400 Subject: [PATCH] fix build and tests --- carserver/server_test.go | 2 +- carstore/gateway_api_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/carserver/server_test.go b/carserver/server_test.go index b36708a..bc387f3 100644 --- a/carserver/server_test.go +++ b/carserver/server_test.go @@ -200,7 +200,7 @@ func buildHarness(t *testing.T, ctx context.Context) *carServerHarness { // create the getway api with a test http server svc := testutils.GetTestServerForRoots(t, out) - gwAPI := carstore.NewGatewayAPI(svc.URL, sapi) + gwAPI := carstore.NewGatewayAPI(svc.URL, sapi, 10000000) lg := logs.NewSaturnLogger() cfg := carstore.Config{MaxCARFilesDiskSpace: 100000000} cs, err := carstore.New(temp, gwAPI, cfg, lg) diff --git a/carstore/gateway_api_test.go b/carstore/gateway_api_test.go index d558eb7..9796288 100644 --- a/carstore/gateway_api_test.go +++ b/carstore/gateway_api_test.go @@ -88,7 +88,6 @@ func TestDownloadFailsIfTooLarge(t *testing.T) { require.NoError(t, err) require.NotEmpty(t, rd) - out, err := ioutil.ReadAll(rd) + _, err = ioutil.ReadAll(rd) require.Error(t, ErrDownloadTooLarge) - require.Empty(t, out) }