z_final_test.go 402 B

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