2013-06-25 05:22:02 +04:00
|
|
|
package docker
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/dotcloud/docker/utils"
|
|
|
|
"runtime"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2013-07-25 02:48:18 +04:00
|
|
|
func displayFdGoroutines(t *testing.T) {
|
|
|
|
t.Logf("Fds: %d, Goroutines: %d", utils.GetTotalUsedFds(), runtime.NumGoroutine())
|
|
|
|
}
|
|
|
|
|
2013-06-25 05:22:02 +04:00
|
|
|
func TestFinal(t *testing.T) {
|
|
|
|
cleanup(globalRuntime)
|
2013-07-25 02:48:18 +04:00
|
|
|
t.Logf("Start Fds: %d, Start Goroutines: %d", startFds, startGoroutines)
|
|
|
|
displayFdGoroutines(t)
|
2013-06-25 05:22:02 +04:00
|
|
|
}
|