1
0
mirror of https://github.com/docker/cli.git synced 2026-01-25 03:42:05 +03:00
Files
cli/components/engine/z_final_test.go
Solomon Hykes 38810afde9 hack: cleanup devicemapper at the last test
Upstream-commit: f3e6d34df23adf84f520b058e4363f8b789d2ebf
Component: engine
2013-10-16 23:27:00 +00:00

19 lines
386 B
Go

package docker
import (
"github.com/dotcloud/docker/utils"
"runtime"
"testing"
)
func displayFdGoroutines(t *testing.T) {
t.Logf("Fds: %d, Goroutines: %d", utils.GetTotalUsedFds(), runtime.NumGoroutine())
}
func TestFinal(t *testing.T) {
nuke(globalRuntime)
t.Logf("Start Fds: %d, Start Goroutines: %d", startFds, startGoroutines)
cleanupDevMapper()
displayFdGoroutines(t)
}