mirror of https://github.com/docker/cli.git
fixed:go vetting warning unkeyed fields
Signed-off-by: Aaron.L.Xu <liker.xu@foxmail.com>
This commit is contained in:
parent
6e24fc3f58
commit
cc44dec589
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
func TestCalculateBlockIO(t *testing.T) {
|
func TestCalculateBlockIO(t *testing.T) {
|
||||||
blkio := types.BlkioStats{
|
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)
|
blkRead, blkWrite := calculateBlockIO(blkio)
|
||||||
if blkRead != 5801 {
|
if blkRead != 5801 {
|
||||||
|
|
Loading…
Reference in New Issue