gotsrpc/http_test.go
2018-12-20 11:53:04 +01:00

17 lines
277 B
Go

package gotsrpc
import (
"github.com/stretchr/testify/assert"
"net/http"
"testing"
)
func TestSetDefaultHttpClientFactory(t *testing.T) {
newFactory := func() *http.Client {
return nil
}
SetDefaultHttpClientFactory(newFactory)
assert.Nil(t, defaultHttpFactory())
}