Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Fix build and tests #78

Merged
merged 1 commit into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion carserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions carstore/gateway_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}