Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
abuchanan-airbyte committed Aug 30, 2024
1 parent a8fd7bf commit b466820
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/cmd/local/docker/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ func TestNewWithOptions(t *testing.T) {
goos: "linux",
},
}
expVersion := Version{
Platform: dockertest.DefaultServerVersion.Platform.Name,
Arch: dockertest.DefaultServerVersion.Arch,
Version: dockertest.DefaultServerVersion.Version,
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down Expand Up @@ -72,7 +77,7 @@ func TestNewWithOptions(t *testing.T) {
if err != nil {
t.Fatal("failed fetching version", err)
}
if d := cmp.Diff(dockertest.DefaultServerVersion, ver); d != "" {
if d := cmp.Diff(expVersion, ver); d != "" {
t.Error("unexpected version", d)
}
})
Expand Down

0 comments on commit b466820

Please sign in to comment.