Skip to content

Commit

Permalink
fix(pkg/driverbuilder): fixed flaky test.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Oct 10, 2023
1 parent 9e7e4ac commit 8599637
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions pkg/driverbuilder/builder/ubuntu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ var tests = []struct {
Minor: 5,
Patch: 0,
},
Extraversion: "5",
FullExtraversion: "-5",
Extraversion: "9",
FullExtraversion: "-9",
Architecture: kernelrelease.ArchitectureAmd64,
},
kernelversion: "5",
kernelversion: "9",
expected: struct {
headersURLs []string
urls []string
Expand All @@ -167,31 +167,31 @@ var tests = []struct {
err error
}{
headersURLs: []string{
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-5-generic_6.5.0-5.5_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-5_6.5.0-5.5_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_all.deb",
},
urls: []string{
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-5_6.5.0-5.5_amd64_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-5-generic_6.5.0-5.5_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-generic-headers-6.5.0-5_6.5.0-5.5_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-5_6.5.0-5.5_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-5_6.5.0-5.5_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-5_6.5.0-5.5_amd64_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-5-generic_6.5.0-5.5_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-generic-headers-6.5.0-5_6.5.0-5.5_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-5_6.5.0-5.5_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-5_6.5.0-5.5_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-5_6.5.0-5.5_amd64_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-5-generic_6.5.0-5.5_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-generic-headers-6.5.0-5_6.5.0-5.5_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-5_6.5.0-5.5_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-5_6.5.0-5.5_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_amd64_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-generic-headers-6.5.0-9_6.5.0-9.9_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_amd64_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-generic-headers-6.5.0-9_6.5.0-9.9_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9_6.5.0-9.9_amd64_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-generic-headers-6.5.0-9_6.5.0-9.9_all.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb",
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9_6.5.0-9.9_all.deb",
},
gccVersion: semver.Version{
Major: 6,
Minor: 3,
},
firstExtra: "5",
firstExtra: "9",
flavor: "generic",
err: nil,
},
Expand Down

0 comments on commit 8599637

Please sign in to comment.