mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
18 lines
278 B
Go
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())
|
|
}
|