• Daniel Martí's avatar
    Properly close http connection on TestList · 5ec087fa
    Daniel Martí authored
    If not, using `go test -count=n` would make them pile up and ultimately
    get to the limit of open files:
    
    	apiserver_test.go:984: 17: unexpected error: Get http://127.0.0.1:44131/apis/test.group/version/simple: dial tcp 127.0.0.1:44131: socket: too many open files
    
    Steps to reproduce (no longer fails):
    
    	godep go test -short -run '^$' -o test .
    	./test -test.run '^TestList$' -test.count 100
    
    Note that this might not fail if your `ulimit -n` is not low enough.
    5ec087fa
apiserver_test.go 99.2 KB