gotsrpc/http_test.go
2022-08-17 08:48:21 +02:00

18 lines
278 B
Go

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