Skip to content

Commit

Permalink
Addressed hound comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kwojcicki committed Nov 16, 2017
1 parent 49d07fd commit bcb4abc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions metricbeat/module/docker/diskio/diskio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ func TestDeltaMultipleContainers(t *testing.T) {
apiContainer2.Stats.Read = time.Now()
apiContainer2.Container = containers[1]
apiContainer2.Stats.BlkioStats.IOServicedRecursive = append(apiContainer2.Stats.BlkioStats.IOServicedRecursive, metrics)
dockerStats := make([]docker.Stat, 0)
dockerStats = append(dockerStats, apiContainer1)
dockerStats = append(dockerStats, apiContainer2)
dockerStats := []docker.Stat{apiContainer1, apiContainer2}
stats := blkioService.getBlkioStatsList(dockerStats)
totals := make([]float64, 2, 2)
for _, stat := range stats {
Expand Down Expand Up @@ -99,8 +97,7 @@ func TestDeltaOneContainer(t *testing.T) {
apiContainer.Stats.Read = time.Now()
apiContainer.Container = containers
apiContainer.Stats.BlkioStats.IOServicedRecursive = append(apiContainer.Stats.BlkioStats.IOServicedRecursive, metrics)
dockerStats := make([]docker.Stat, 0)
dockerStats = append(dockerStats, apiContainer)
dockerStats := []docker.Stat{apiContainer}
stats := blkioService.getBlkioStatsList(dockerStats)
totals := make([]float64, 2, 2)
for _, stat := range stats {
Expand Down

0 comments on commit bcb4abc

Please sign in to comment.