diff --git a/utils/plugin/downloader_test.go b/utils/plugin/downloader_test.go index 34857ad7d7..7c54f6b8ef 100644 --- a/utils/plugin/downloader_test.go +++ b/utils/plugin/downloader_test.go @@ -318,13 +318,13 @@ func TestCheckShaOfPlugin(t *testing.T) { func TestDownloadFile(t *testing.T) { t.Run("test sha of real file", func(t *testing.T) { - err := downloadFile("error", "", FileDownloaderImpl{}, nil) + err := downloadFile("error", " ", FileDownloaderImpl{}, nil) assert.Error(t, err) assert.Contains(t, err.Error(), "failed to download file from") }) t.Run("test download fail with invalid url", func(t *testing.T) { - url := "http://\x07World" + url := "://example.com" err := downloadFile("error", url, FileDownloaderImpl{}, nil) assert.Error(t, err) assert.Contains(t, err.Error(), "failed to download file from")