From 98b5745279c9ed68fed5423d1c8511797ba5326d Mon Sep 17 00:00:00 2001 From: ASAKURA Kazuki <32762324+Arthur1@users.noreply.github.com> Date: Wed, 23 Aug 2023 00:26:20 +0900 Subject: [PATCH] fixed existing error message --- mackerel-plugin-docker/lib/docker_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mackerel-plugin-docker/lib/docker_test.go b/mackerel-plugin-docker/lib/docker_test.go index e55fdc65..b5135a86 100644 --- a/mackerel-plugin-docker/lib/docker_test.go +++ b/mackerel-plugin-docker/lib/docker_test.go @@ -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 {