1
0
Fork 0

Bump to go1.24

Co-authored-by: Romain <rtribotte@users.noreply.github.com>
This commit is contained in:
Kevin Pollet 2025-06-02 10:36:05 +02:00 committed by GitHub
parent 5f35c88805
commit cd16321dd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
88 changed files with 284 additions and 362 deletions

View file

@ -1,7 +1,6 @@
package marathon
import (
"context"
"math"
"testing"
@ -22,7 +21,7 @@ func TestGetConfigurationAPIErrors(t *testing.T) {
marathonClient: fakeClient,
}
actualConfig := p.getConfigurations(context.Background())
actualConfig := p.getConfigurations(t.Context())
fakeClient.AssertExpectations(t)
if actualConfig != nil {
@ -2051,7 +2050,7 @@ func TestBuildConfiguration(t *testing.T) {
err := p.Init()
require.NoError(t, err)
actualConfig := p.buildConfiguration(context.Background(), test.applications)
actualConfig := p.buildConfiguration(t.Context(), test.applications)
assert.NotNil(t, actualConfig)
assert.Equal(t, test.expected, actualConfig)
@ -2097,7 +2096,7 @@ func TestApplicationFilterEnabled(t *testing.T) {
extraConf, err := provider.getConfiguration(app)
require.NoError(t, err)
if provider.keepApplication(context.Background(), extraConf, stringValueMap(app.Labels)) != test.expected {
if provider.keepApplication(t.Context(), extraConf, stringValueMap(app.Labels)) != test.expected {
t.Errorf("got unexpected filtering = %t", !test.expected)
}
})