Skip to content

Commit

Permalink
add query concurrency test
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Oct 5, 2024
1 parent f19ae9b commit 1fe2f2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/codegen/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,12 @@ func TestQueryAsync(t *testing.T) {
assert.Assert(t, latency < (3*time.Second))
}

func TestQueryAsyncByName(t *testing.T) {
t.Setenv("QUERY_CONCURRENCY", "getArticles=2")
latency := testQueryLatency(t)
assert.Assert(t, latency < (3*time.Second))
}

func testQueryLatency(t *testing.T) time.Duration {
testServer := createTestServer(t).BuildTestServer()
defer testServer.Close()
Expand Down

0 comments on commit 1fe2f2a

Please sign in to comment.