Skip to content

Commit

Permalink
fix: failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
cplee committed Dec 24, 2024
1 parent a176075 commit 6281be2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/container/docker_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ func TestParseWithMacAddress(t *testing.T) {
if _, _, _, err := parseRun([]string{invalidMacAddress, "img", "cmd"}); err != nil && err.Error() != "invalidMacAddress is not a valid mac address" {
t.Fatalf("Expected an error with %v mac-address, got %v", invalidMacAddress, err)
}
_, _, networkingConfig := mustParse(t, validMacAddress)
assert.Equal(t, "92:d0:c6:0a:29:33", networkingConfig.EndpointsConfig["bridge"].MacAddress)
config, hostConfig, _ := mustParse(t, validMacAddress)
fmt.Printf("MacAddress: %+v\n", hostConfig)
assert.Equal(t, "92:d0:c6:0a:29:33", config.MacAddress) //nolint:staticcheck
}

func TestRunFlagsParseWithMemory(t *testing.T) {
Expand Down

0 comments on commit 6281be2

Please sign in to comment.