Skip to content

Commit

Permalink
Merge branch 'master' into fix-k8s-init-log
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r committed Apr 16, 2022
2 parents 40e1b36 + db09611 commit 063ae55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions executor/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestExecutor_FromContext(t *testing.T) {
want Engine
}{
{
// nolint: staticcheck // ignore using string with context value
// nolint: staticcheck,revive // ignore using string with context value
context: context.WithValue(context.Background(), key, _engine),
want: _engine,
},
Expand All @@ -64,7 +64,7 @@ func TestExecutor_FromContext(t *testing.T) {
want: nil,
},
{
// nolint: staticcheck // ignore using string with context value
// nolint: staticcheck,revive // ignore using string with context value
context: context.WithValue(context.Background(), key, "foo"),
want: nil,
},
Expand Down Expand Up @@ -173,7 +173,7 @@ func TestExecutor_WithContext(t *testing.T) {
t.Errorf("unable to create linux engine: %v", err)
}

// nolint: staticcheck // ignore using string with context value
// nolint: staticcheck,revive // ignore using string with context value
want := context.WithValue(context.Background(), key, _engine)

// run test
Expand Down
1 change: 1 addition & 0 deletions mock/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Version = "v1.40"

// New returns a client that is capable of handling
// Docker client calls and returning stub responses.
// nolint:revive // ignore unexported type as it is intentional
func New() (*mock, error) {
return &mock{
ConfigService: ConfigService{},
Expand Down
6 changes: 3 additions & 3 deletions runtime/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestRuntime_FromContext(t *testing.T) {
want Engine
}{
{
// nolint: staticcheck // ignore using string with context value
// nolint: staticcheck,revive // ignore using string with context value
context: context.WithValue(context.Background(), key, _engine),
want: _engine,
},
Expand All @@ -38,7 +38,7 @@ func TestRuntime_FromContext(t *testing.T) {
want: nil,
},
{
// nolint: staticcheck // ignore using string with context value
// nolint: staticcheck,revive // ignore using string with context value
context: context.WithValue(context.Background(), key, "foo"),
want: nil,
},
Expand Down Expand Up @@ -109,7 +109,7 @@ func TestRuntime_WithContext(t *testing.T) {
t.Errorf("unable to create runtime engine: %v", err)
}

// nolint: staticcheck // ignore using string with context value
// nolint: staticcheck,revive // ignore using string with context value
want := context.WithValue(context.Background(), key, _engine)

// run test
Expand Down

0 comments on commit 063ae55

Please sign in to comment.