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