Skip to content

Commit

Permalink
Merge branch 'master' into revert-runtime-151
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r authored Apr 16, 2022
2 parents ee1f575 + db09611 commit 6dc40e2
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 6dc40e2

Please sign in to comment.