From 043fbbd1a569f1248277415678b2880a0f328971 Mon Sep 17 00:00:00 2001 From: Yuval Shavit Date: Tue, 21 Feb 2023 10:50:55 -0500 Subject: [PATCH] updater needs a Client now This broke due to bf2bf479b901726b8b6af908fa3cd976942de0d6, which hit main before this branch did. --- pkg/updater/updater_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/updater/updater_test.go b/pkg/updater/updater_test.go index 4f9b6abc8..e278fc2a7 100644 --- a/pkg/updater/updater_test.go +++ b/pkg/updater/updater_test.go @@ -2,6 +2,7 @@ package updater import ( "encoding/json" + "github.com/gojek/heimdall/v7/httpclient" "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" @@ -178,6 +179,7 @@ func TestCheckUpdate(t *testing.T) { ServerURL: server.URL, Stream: tt.cli.checkStream, CurrentStream: tt.cli.buildStream, + Client: httpclient.NewClient(), } needsUpdate, e := updater.CheckUpdate(tt.cli.currentVersion)