2013-06-24 21:22:02 -04:00
|
|
|
package docker
|
|
|
|
|
|
|
|
import (
|
2014-07-24 18:19:50 -04:00
|
|
|
"github.com/docker/docker/utils"
|
2013-06-24 21:22:02 -04:00
|
|
|
"runtime"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2013-07-24 18:48:18 -04:00
|
|
|
func displayFdGoroutines(t *testing.T) {
|
|
|
|
t.Logf("Fds: %d, Goroutines: %d", utils.GetTotalUsedFds(), runtime.NumGoroutine())
|
|
|
|
}
|
|
|
|
|
2013-06-24 21:22:02 -04:00
|
|
|
func TestFinal(t *testing.T) {
|
2014-04-17 17:43:01 -04:00
|
|
|
nuke(globalDaemon)
|
2013-07-24 18:48:18 -04:00
|
|
|
t.Logf("Start Fds: %d, Start Goroutines: %d", startFds, startGoroutines)
|
|
|
|
displayFdGoroutines(t)
|
2013-06-24 21:22:02 -04:00
|
|
|
}
|