Update step_download_test.go
This commit is contained in:
parent
973a1ea103
commit
72c2731f7b
|
@ -258,7 +258,7 @@ func TestStepDownload_download(t *testing.T) {
|
||||||
// Abs path with extension provided
|
// Abs path with extension provided
|
||||||
step.TargetPath = "./packer"
|
step.TargetPath = "./packer"
|
||||||
step.Extension = "ova"
|
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 {
|
if err != nil {
|
||||||
t.Fatalf("Bad: non expected error %s", err.Error())
|
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
|
// Abs path with no extension provided
|
||||||
step.TargetPath = "./packer"
|
step.TargetPath = "./packer"
|
||||||
step.Extension = ""
|
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 {
|
if err != nil {
|
||||||
t.Fatalf("Bad: non expected error %s", err.Error())
|
t.Fatalf("Bad: non expected error %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue