MCPcopy Create free account
hub / github.com/tendermint/tendermint / TestCustomHTTPClient

Function TestCustomHTTPClient

rpc/client/rpc_test.go:88–96  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestCustomHTTPClient(t *testing.T) {
89 _, conf := NodeSuite(t)
90 remote := conf.RPC.ListenAddress
91 c, err := rpchttp.NewWithClient(remote, http.DefaultClient)
92 require.Nil(t, err)
93 status, err := c.Status(context.Background())
94 require.NoError(t, err)
95 require.NotNil(t, status)
96}
97
98func TestCorsEnabled(t *testing.T) {
99 _, conf := NodeSuite(t)

Callers

nothing calls this directly

Calls 2

NodeSuiteFunction · 0.70
StatusMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…