Skip to content

Commit 5c47c08

Browse files
FedeDPpoiana
authored andcommitted
chore: fixed flaky test.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent fc0a709 commit 5c47c08

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

pkg/build/build_test.go

+30-30
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestBuild(t *testing.T) {
5555
RepoRoot: "./test",
5656
Target: root.Target{
5757
Distro: "centos",
58-
KernelRelease: "5.14.0-370.el9.x86_64",
58+
KernelRelease: "4.18.0-527.el8.x86_64",
5959
KernelVersion: "1",
6060
},
6161
},
@@ -64,15 +64,15 @@ func TestBuild(t *testing.T) {
6464
IgnoreErrors: false,
6565
},
6666
expectedLocalObjects: []string{
67-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
68-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
67+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
68+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
6969
},
7070
expectedBucketObjects: []string{
71-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
72-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
71+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
72+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
7373
},
7474
shouldCreate: true,
75-
name: "build 5.0.1+driver centos 5.14.0-370.el9.x86_64",
75+
name: "build 5.0.1+driver centos 4.18.0-527.el8.x86_64",
7676
},
7777
{
7878
opts: Options{
@@ -83,7 +83,7 @@ func TestBuild(t *testing.T) {
8383
RepoRoot: "./test",
8484
Target: root.Target{
8585
Distro: "centos",
86-
KernelRelease: "5.14.0-372.el9.x86_64",
86+
KernelRelease: "4.18.0-529.el8.x86_64",
8787
KernelVersion: "1",
8888
},
8989
},
@@ -92,17 +92,17 @@ func TestBuild(t *testing.T) {
9292
IgnoreErrors: false,
9393
},
9494
expectedLocalObjects: []string{
95-
"falco_centos_5.14.0-372.el9.x86_64_1.ko",
96-
"falco_centos_5.14.0-372.el9.x86_64_1.o",
97-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
98-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
95+
"falco_centos_4.18.0-529.el8.x86_64_1.ko",
96+
"falco_centos_4.18.0-529.el8.x86_64_1.o",
97+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
98+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
9999
},
100100
expectedBucketObjects: []string{
101-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
102-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
101+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
102+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
103103
},
104104
shouldCreate: false, // since it is not publishing
105-
name: "build 5.0.1+driver centos 5.14.0-372.el9.x86_64",
105+
name: "build 5.0.1+driver centos 4.18.0-529.el8.x86_64",
106106
},
107107
{
108108
opts: Options{
@@ -113,7 +113,7 @@ func TestBuild(t *testing.T) {
113113
RepoRoot: "./test",
114114
Target: root.Target{
115115
Distro: "centos",
116-
KernelRelease: "5.14.0-370.el9.x86_64", // try to rebuild same object.
116+
KernelRelease: "4.18.0-527.el8.x86_64", // try to rebuild same object.
117117
KernelVersion: "1",
118118
},
119119
},
@@ -122,17 +122,17 @@ func TestBuild(t *testing.T) {
122122
IgnoreErrors: false,
123123
},
124124
expectedLocalObjects: []string{
125-
"falco_centos_5.14.0-372.el9.x86_64_1.ko",
126-
"falco_centos_5.14.0-372.el9.x86_64_1.o",
127-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
128-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
125+
"falco_centos_4.18.0-529.el8.x86_64_1.ko",
126+
"falco_centos_4.18.0-529.el8.x86_64_1.o",
127+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
128+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
129129
},
130130
expectedBucketObjects: []string{
131-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
132-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
131+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
132+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
133133
},
134134
shouldCreate: false, // since objects are already present, nothing should be created
135-
name: "rebuild 5.0.1+driver centos 5.14.0-370.el9.x86_64",
135+
name: "rebuild 5.0.1+driver centos 4.18.0-527.el8.x86_64",
136136
},
137137
{
138138
opts: Options{
@@ -143,7 +143,7 @@ func TestBuild(t *testing.T) {
143143
RepoRoot: "./test",
144144
Target: root.Target{
145145
Distro: "centos",
146-
KernelRelease: "5.14.0-370.el9.x86_64", // try to rebuild same object.
146+
KernelRelease: "4.18.0-527.el8.x86_64", // try to rebuild same object.
147147
KernelVersion: "1",
148148
},
149149
},
@@ -152,17 +152,17 @@ func TestBuild(t *testing.T) {
152152
IgnoreErrors: false,
153153
},
154154
expectedLocalObjects: []string{
155-
"falco_centos_5.14.0-372.el9.x86_64_1.ko",
156-
"falco_centos_5.14.0-372.el9.x86_64_1.o",
157-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
158-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
155+
"falco_centos_4.18.0-529.el8.x86_64_1.ko",
156+
"falco_centos_4.18.0-529.el8.x86_64_1.o",
157+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
158+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
159159
},
160160
expectedBucketObjects: []string{
161-
"falco_centos_5.14.0-370.el9.x86_64_1.ko",
162-
"falco_centos_5.14.0-370.el9.x86_64_1.o",
161+
"falco_centos_4.18.0-527.el8.x86_64_1.ko",
162+
"falco_centos_4.18.0-527.el8.x86_64_1.o",
163163
},
164164
shouldCreate: true,
165-
name: "rebuild and publish 5.0.1+driver centos 5.14.0-370.el9.x86_64",
165+
name: "rebuild and publish 5.0.1+driver centos 4.18.0-527.el8.x86_64",
166166
},
167167
}
168168

0 commit comments

Comments
 (0)