Skip to content

Commit

Permalink
bugfix: shouldn't use string to convert int64 to string
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Wan <zirenwan@gmail.com>
  • Loading branch information
HusterWan authored and rudyfly committed Jan 24, 2019
1 parent ba2ebf7 commit 8f45b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cli_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"os"
"os/exec"
"strconv"
"strings"

"github.com/alibaba/pouch/apis/types"
Expand Down Expand Up @@ -417,7 +418,7 @@ func checkContainerCPUQuota(c *check.C, cName, cpuQuota string) {
}
containerID = result[0].ID

if string(result[0].HostConfig.CPUQuota) == cpuQuota {
if strconv.FormatInt(result[0].HostConfig.CPUQuota, 10) != cpuQuota {
c.Errorf("expect CPUQuota %s, but got: %v", cpuQuota, result[0].HostConfig.CPUQuota)
}

Expand Down

0 comments on commit 8f45b55

Please sign in to comment.