@@ -23,9 +23,9 @@ func withPackageOverride(oldPkg, newPkg string) func(cfg *testLinuxConfig) {
2323 }
2424}
2525
26- func withGoVersion ( version string ) func (cfg * testLinuxConfig ) {
26+ func withSupportGomodVersionUpdate ( ) func (cfg * testLinuxConfig ) {
2727 return func (cfg * testLinuxConfig ) {
28- cfg .GoVersion = version
28+ cfg .SupportsGomodVersionUpdate = true
2929 }
3030}
3131
@@ -160,7 +160,6 @@ func TestJammy(t *testing.T) {
160160
161161 ctx := startTestSpan (baseCtx , t )
162162 testConf := debLinuxTestConfigFor (ubuntu .JammyDefaultTargetKey , ubuntu .JammyConfig ,
163- withGoVersion ("1.18" ),
164163 withPackageOverride ("rust" , "rust-all" ),
165164 withPackageOverride ("bazel" , noPackageAvailable ),
166165 withPackageOverride ("python" , "python3 python3-pip" ),
@@ -175,7 +174,7 @@ func TestNoble(t *testing.T) {
175174
176175 ctx := startTestSpan (baseCtx , t )
177176 testConf := debLinuxTestConfigFor (ubuntu .NobleDefaultTargetKey , ubuntu .NobleConfig ,
178- withGoVersion ( "1.22" ),
177+ withSupportGomodVersionUpdate ( ),
179178 withPackageOverride ("rust" , "rust-all" ),
180179 withPackageOverride ("bazel" , "bazel-bootstrap" ),
181180 )
@@ -188,7 +187,7 @@ func TestFocal(t *testing.T) {
188187
189188 ctx := startTestSpan (baseCtx , t )
190189 testConf := debLinuxTestConfigFor (ubuntu .FocalDefaultTargetKey , ubuntu .FocalConfig ,
191- withGoVersion ( "1.22" ),
190+ withSupportGomodVersionUpdate ( ),
192191 withPackageOverride ("golang" , "golang-1.22" ),
193192 withPackageOverride ("rust" , "rust-all" ),
194193 withPackageOverride ("bazel" , noPackageAvailable ),
@@ -203,7 +202,6 @@ func TestBionic(t *testing.T) {
203202
204203 ctx := startTestSpan (baseCtx , t )
205204 testConf := debLinuxTestConfigFor (ubuntu .BionicDefaultTargetKey , ubuntu .BionicConfig ,
206- withGoVersion ("1.18" ),
207205 withPackageOverride ("golang" , "golang-1.18" ),
208206 withPackageOverride ("rust" , "rust-all" ),
209207 withPackageOverride ("bazel" , noPackageAvailable ),
0 commit comments