Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson) Upstream-commit: 359b7df5d2af5733b8a1ea6746d062053053b23e Component: engine
18 lines
365 B
Go
18 lines
365 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(globalDaemon)
|
|
t.Logf("Start Fds: %d, Start Goroutines: %d", startFds, startGoroutines)
|
|
displayFdGoroutines(t)
|
|
}
|