Update step_download_test.go

This commit is contained in:
Adrien Delorme 2020-02-06 18:24:13 +01:00
parent 973a1ea103
commit 72c2731f7b
1 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ func TestStepDownload_download(t *testing.T) {
// Abs path with extension provided
step.TargetPath = "./packer"
step.Extension = "ova"
path, err := step.download(context.TODO(), ui, "./test-fixtures/root/basic.txt")
_, err := step.download(context.TODO(), ui, "./test-fixtures/root/basic.txt")
if err != nil {
t.Fatalf("Bad: non expected error %s", err.Error())
}
@ -269,7 +269,7 @@ func TestStepDownload_download(t *testing.T) {
// Abs path with no extension provided
step.TargetPath = "./packer"
step.Extension = ""
path, err = step.download(context.TODO(), ui, "./test-fixtures/root/basic.txt")
_, err = step.download(context.TODO(), ui, "./test-fixtures/root/basic.txt")
if err != nil {
t.Fatalf("Bad: non expected error %s", err.Error())
}