From 5d9a5ce7ddd36774b0f74e31be442c1118feb9bd Mon Sep 17 00:00:00 2001 From: liker12134 Date: Mon, 20 Mar 2017 16:27:51 +0800 Subject: [PATCH] fixed:go vetting warning unkeyed fields Signed-off-by: Aaron.L.Xu Upstream-commit: cc44dec589e45755a7fcccc053aff0267d2b9cf0 Component: cli --- components/cli/command/container/stats_unit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cli/command/container/stats_unit_test.go b/components/cli/command/container/stats_unit_test.go index 828d634c8a..612914c9cd 100644 --- a/components/cli/command/container/stats_unit_test.go +++ b/components/cli/command/container/stats_unit_test.go @@ -8,7 +8,7 @@ import ( func TestCalculateBlockIO(t *testing.T) { blkio := types.BlkioStats{ - IoServiceBytesRecursive: []types.BlkioStatEntry{{8, 0, "read", 1234}, {8, 1, "read", 4567}, {8, 0, "write", 123}, {8, 1, "write", 456}}, + IoServiceBytesRecursive: []types.BlkioStatEntry{{Major: 8, Minor: 0, Op: "read", Value: 1234}, {Major: 8, Minor: 1, Op: "read", Value: 4567}, {Major: 8, Minor: 0, Op: "write", Value: 123}, {Major: 8, Minor: 1, Op: "write", Value: 456}}, } blkRead, blkWrite := calculateBlockIO(blkio) if blkRead != 5801 {