MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / TestIncQueued

Function TestIncQueued

scope_test.go:413–426  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

411}
412
413func TestIncQueued(t *testing.T) {
414 u := testGetUser()
415 cu := testGetClusterUser()
416 c := testGetCluster()
417 expectedSessionHostMap := map[string]string{
418 "0": "127.0.0.22",
419 "1": "127.0.0.33",
420 "2": "127.0.0.44",
421 "3": "127.0.0.55",
422 }
423 if err := testConcurrentQuery(c, u, cu, 10000, expectedSessionHostMap); err != nil {
424 t.Fatalf("incQueue test err: %s", err)
425 }
426}
427
428func testConcurrentQuery(c *cluster, u *user, cu *clusterUser, concurrency int, expectedSessionHostMap map[string]string) error {
429 ch := make(chan map[string]string, 10000)

Callers

nothing calls this directly

Calls 4

testGetUserFunction · 0.85
testGetClusterUserFunction · 0.85
testGetClusterFunction · 0.85
testConcurrentQueryFunction · 0.85

Tested by

no test coverage detected