Skip to content

Commit

Permalink
updater needs a Client now (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuval Shavit authored Feb 21, 2023
1 parent a3540f3 commit a8a415d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/updater/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit a8a415d

Please sign in to comment.