mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 19:21:46 +00:00
Make tests pass.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 }()
|
||||
|
||||
Reference in New Issue
Block a user