Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: Drop runtime assumption for executor opts tests
  • Loading branch information
cognifloyd committed Jan 20, 2023
commit 0643d7fc2c068dc2dd8587c5aa5bb99c21b32499
8 changes: 4 additions & 4 deletions executor/linux/opts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func TestLinux_Opt_WithRepo(t *testing.T) {

func TestLinux_Opt_WithRuntime(t *testing.T) {
// setup types
_runtime, err := docker.NewMock()
_docker, err := docker.NewMock()
if err != nil {
t.Errorf("unable to create docker runtime engine: %v", err)
}
Expand All @@ -494,7 +494,7 @@ func TestLinux_Opt_WithRuntime(t *testing.T) {
{
name: "docker runtime",
failure: false,
runtime: _runtime,
runtime: _docker,
},
{
name: "nil runtime",
Expand Down Expand Up @@ -522,8 +522,8 @@ func TestLinux_Opt_WithRuntime(t *testing.T) {
t.Errorf("WithRuntime returned err: %v", err)
}

if !reflect.DeepEqual(_engine.Runtime, _runtime) {
t.Errorf("WithRuntime is %v, want %v", _engine.Runtime, _runtime)
if !reflect.DeepEqual(_engine.Runtime, test.runtime) {
t.Errorf("WithRuntime is %v, want %v", _engine.Runtime, test.runtime)
}
})
}
Expand Down