Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
andimarek authored and bbakerman committed Oct 8, 2019
1 parent e9b9494 commit e938ab4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/groovy/graphql/util/TreeParallelTraverserTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ class TreeParallelTraverserTest extends Specification {
def visitor = [
enter: { TraverserContext context ->
def number = context.thisNode().number
println "number: $number"
println "number: $number in ${Thread.currentThread()}"
if (number == 1) {
// while (latch.getCount() > 0) {
// }
println "wating in ${Thread.currentThread()}"
assert latch.await(30, TimeUnit.SECONDS)
}
nodes.add(number)
latch.countDown()
println "added new node: $nodes with size: ${nodes.size()} and latch: ${latch.getCount()}"
println "added new node: $nodes with size: ${nodes.size()} and latch: ${latch.getCount()} in ${Thread.currentThread()}"
TraversalControl.CONTINUE
}
] as TraverserVisitor
Expand Down

0 comments on commit e938ab4

Please sign in to comment.