Skip to content

Commit 76cdbc1

Browse files
committed
stabilize test
1 parent 62f1e84 commit 76cdbc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/groovy/graphql/ProfilerTest.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ class ProfilerTest extends Specification {
268268
def schema = TestUtil.schema(sdl, [
269269
Query: [
270270
foo: { DataFetchingEnvironment dfe ->
271+
// blocking the engine for 1ms
272+
// so that engineTotalRunningTime time is more than 1ms
273+
Thread.sleep(1)
271274
return CompletableFuture.supplyAsync {
272275
Thread.sleep(500)
273276
"1"

0 commit comments

Comments
 (0)