feat(scraper): bound article enrichment diagnostics (#40)
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
package cnbcbusiness
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCNBCProductionConstructorUsesExplicitDNSGuardedTransport(t *testing.T) {
|
||||
client := New().client
|
||||
transport, ok := client.Transport.(*http.Transport)
|
||||
if !ok || transport.DialContext == nil {
|
||||
t.Fatal("CNBC production constructor has no explicit DNS-guarded dial transport; standard transport can connect after a private DNS answer")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user