Make tests pass.

This commit is contained in:
Tom Wilkie
2015-12-17 11:18:57 +00:00
parent 13a82bc9a8
commit 1ef6006c55
2 changed files with 8 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ func (c *mockContainer) GetNode(_ string, _ []net.IP) report.Node {
})
}
func (c *mockContainer) Container() *client.Container {
return c.c
}
func (c *mockContainer) HasTTY() bool { return true }
type mockDockerClient struct {

View File

@@ -23,6 +23,10 @@ func (m *mockProcessTree) GetParent(pid int) (int, error) {
return parent, nil
}
func (m *mockProcessTree) GetChildren(int) ([]int, error) {
panic("Not implemented")
}
func TestTagger(t *testing.T) {
oldProcessTree := docker.NewProcessTreeStub
defer func() { docker.NewProcessTreeStub = oldProcessTree }()