(t *testing.T)
| 202 | } |
| 203 | |
| 204 | func TestRunningQueriesConcurrent(t *testing.T) { |
| 205 | cu := &clusterUser{ |
| 206 | maxConcurrentQueries: 10, |
| 207 | } |
| 208 | f := func() { |
| 209 | cu.queryCounter.inc() |
| 210 | cu.queryCounter.load() |
| 211 | cu.queryCounter.dec() |
| 212 | } |
| 213 | if err := testConcurrent(f, 1000); err != nil { |
| 214 | t.Fatalf("concurrent test err: %s", err) |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | func TestGetHostConcurrent(t *testing.T) { |
| 219 | c := &cluster{ |
nothing calls this directly
no test coverage detected