test: fix match image test
This commit is contained in:
parent
1d22902eb0
commit
997d6a67ba
@ -3,8 +3,6 @@ package debian
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/cavaliergopher/grab/v3"
|
|
||||||
|
|
||||||
"code.dumpstack.io/tools/out-of-tree/cache"
|
"code.dumpstack.io/tools/out-of-tree/cache"
|
||||||
"code.dumpstack.io/tools/out-of-tree/config"
|
"code.dumpstack.io/tools/out-of-tree/config"
|
||||||
)
|
)
|
||||||
@ -18,11 +16,6 @@ func TestMatchImagePkg(t *testing.T) {
|
|||||||
DistroRelease: "7",
|
DistroRelease: "7",
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := grab.Get(tmp, fileurl)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkgs, err := MatchImagePkg(km)
|
pkgs, err := MatchImagePkg(km)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user