Skip to content

Commit

Permalink
fixed existing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Aug 22, 2023
1 parent f6d1575 commit 98b5745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mackerel-plugin-docker/lib/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestAddCPUPercentageStats(t *testing.T) {
if stat, ok := stats["docker.cpuacct_percentage.containerA.user"]; !ok {
t.Errorf("docker.cpuacct_percentage.containerA.user should be calculated")
} else if stat != float64(40.0) {
t.Errorf("docker.cpuacct_percentage.containerA.user should be %f, but %f", stat, float64(40.0))
t.Errorf("docker.cpuacct_percentage.containerA.user should be %f, but %f", float64(40.0), stat)
}

if _, ok := stats["docker.cpuacct_percentage.containerC.user"]; ok {
Expand Down

0 comments on commit 98b5745

Please sign in to comment.