z_final_test.go 363 B

1234567891011121314151617
  1. package docker
  2. import (
  3. "github.com/docker/docker/utils"
  4. "runtime"
  5. "testing"
  6. )
  7. func displayFdGoroutines(t *testing.T) {
  8. t.Logf("Fds: %d, Goroutines: %d", utils.GetTotalUsedFds(), runtime.NumGoroutine())
  9. }
  10. func TestFinal(t *testing.T) {
  11. nuke(globalDaemon)
  12. t.Logf("Start Fds: %d, Start Goroutines: %d", startFds, startGoroutines)
  13. displayFdGoroutines(t)
  14. }