From 018d514981c4995b71b0373758256020d2458267 Mon Sep 17 00:00:00 2001 From: Nan Deng Date: Thu, 3 Jul 2014 21:03:04 -0700 Subject: [PATCH] mock container --- container/test/mock.go | 6 +++--- storage/storage.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/container/test/mock.go b/container/test/mock.go index f81144d9..fbbe8fe0 100644 --- a/container/test/mock.go +++ b/container/test/mock.go @@ -56,17 +56,17 @@ func (self *MockContainerHandler) GetStats() (*info.ContainerStats, error) { } func (self *MockContainerHandler) ListContainers(listType container.ListType) ([]info.ContainerReference, error) { - args := self.Called() + args := self.Called(listType) return args.Get(0).([]info.ContainerReference), args.Error(1) } func (self *MockContainerHandler) ListThreads(listType container.ListType) ([]int, error) { - args := self.Called() + args := self.Called(listType) return args.Get(0).([]int), args.Error(1) } func (self *MockContainerHandler) ListProcesses(listType container.ListType) ([]int, error) { - args := self.Called() + args := self.Called(listType) return args.Get(0).([]int), args.Error(1) } diff --git a/storage/storage.go b/storage/storage.go index 51f0b9c0..8b264a93 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -31,7 +31,7 @@ type StorageDriver interface { // Returns samples of the container stats. If numSamples < 0, then // the number of returned samples is implementation defined. Otherwise, the driver // should return at most numSamples samples. - Samples(containername string, numSamples int) ([]*info.ContainerStatsSample, error) + Samples(containerName string, numSamples int) ([]*info.ContainerStatsSample, error) // Close will clear the state of the storage driver. The elements // stored in the underlying storage may or may not be deleted depending