Increase readbility of unit tests by using mkRuntime everywhere

This commit is contained in:
Solomon Hykes
2013-10-18 07:20:39 +00:00
parent 5c175357aa
commit 07d9e4353b
2 changed files with 7 additions and 28 deletions
+1 -4
View File
@@ -472,10 +472,7 @@ func TestGetContainersChanges(t *testing.T) {
func TestGetContainersTop(t *testing.T) {
t.Skip("Fixme. Skipping test for now. Reported error when testing using dind: 'api_test.go:527: Expected 2 processes, found 0.'")
runtime, err := newTestRuntime()
if err != nil {
t.Fatal(err)
}
runtime := mkRuntime(t)
defer nuke(runtime)
srv := &Server{runtime: runtime}