mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Remove publisher if no one is listening
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -274,10 +274,10 @@ func TestGetContainerStats(t *testing.T) {
|
||||
t.Fatalf("GET containers/stats sockRequest failed: %v", err)
|
||||
}
|
||||
|
||||
dec := json.NewDecoder(bytes.NewBuffer(body))
|
||||
var s *stats.Stats
|
||||
if err := json.Unmarshal(body, &s); err != nil {
|
||||
if err := dec.Decode(&s); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
logDone("container REST API - check GET containers/stats")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user