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

Function TestConcurrentJSONRPCBatching

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

Source from the content-addressed store, hash-verified

865}
866
867func TestConcurrentJSONRPCBatching(t *testing.T) {
868 ctx, cancel := context.WithCancel(context.Background())
869 defer cancel()
870
871 _, conf := NodeSuite(t)
872 var wg sync.WaitGroup
873 c := getHTTPClient(t, conf)
874 for i := 0; i < 50; i++ {
875 wg.Add(1)
876 go func() {
877 defer wg.Done()
878 testBatchedJSONRPCCalls(ctx, t, c)
879 }()
880 }
881 wg.Wait()
882}

Callers

nothing calls this directly

Calls 6

getHTTPClientFunction · 0.85
testBatchedJSONRPCCallsFunction · 0.85
NodeSuiteFunction · 0.70
AddMethod · 0.65
DoneMethod · 0.65
WaitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…