mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types/container.StatsResponseReader: move to client
This type was only used in the client, and needs a rewrite; let's move it to the client first. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -151,7 +151,7 @@ func (s *DockerAPISuite) TestGetContainerStats(c *testing.T) {
|
||||
runSleepingContainer(c, "--name", name)
|
||||
|
||||
type b struct {
|
||||
stats container.StatsResponseReader
|
||||
stats client.StatsResponseReader
|
||||
err error
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ func (s *DockerAPISuite) TestGetContainerStatsStream(c *testing.T) {
|
||||
runSleepingContainer(c, "--name", name)
|
||||
|
||||
type b struct {
|
||||
stats container.StatsResponseReader
|
||||
stats client.StatsResponseReader
|
||||
err error
|
||||
}
|
||||
|
||||
@@ -296,7 +296,7 @@ func (s *DockerAPISuite) TestGetContainerStatsNoStream(c *testing.T) {
|
||||
runSleepingContainer(c, "--name", name)
|
||||
|
||||
type b struct {
|
||||
stats container.StatsResponseReader
|
||||
stats client.StatsResponseReader
|
||||
err error
|
||||
}
|
||||
|
||||
@@ -1332,7 +1332,7 @@ func (s *DockerAPISuite) TestContainerAPIStatsWithNetworkDisabled(c *testing.T)
|
||||
cli.WaitRun(c, name)
|
||||
|
||||
type b struct {
|
||||
stats container.StatsResponseReader
|
||||
stats client.StatsResponseReader
|
||||
err error
|
||||
}
|
||||
bc := make(chan b, 1)
|
||||
|
||||
Reference in New Issue
Block a user