(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestSharedHTTPClient(t *testing.T) { |
| 20 | a := assert.NewAssertion(t) |
| 21 | |
| 22 | _ = SharedHttpClient(2 * time.Second) |
| 23 | _ = SharedHttpClient(3 * time.Second) |
| 24 | |
| 25 | client := SharedHttpClient(1 * time.Second) |
| 26 | a.IsTrue(client.Timeout == 1*time.Second) |
| 27 | |
| 28 | client2 := SharedHttpClient(1 * time.Second) |
| 29 | a.IsTrue(client == client2) |
| 30 | |
| 31 | t.Log(timeoutClientMap) |
| 32 | } |
nothing calls this directly
no test coverage detected