• Daniel Martí's avatar
    Properly close test http servers in unversioned · 91fbff99
    Daniel Martí authored
    If not, using `go test -count=n` would make them pile up and ultimately
    get to the limit of open files:
    
    	client_test.go:522: expected an error, got Get http://127.0.0.1:46070/api: dial tcp 127.0.0.1:46070: socket: too many open files
    
    Steps to reproduce (no longer fails):
    
    	godep go test -short -run '^$' -o test .
    	./test -test.run '^TestGetSwaggerSchema' -test.count 100
    
    Note that this might not fail if your `ulimit -n` is not low enough.
    91fbff99
events_test.go 5.13 KB