File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
driver/src/test/java/org/neo4j/driver/internal/async/pool Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public void shouldDecreaseIdleWhenClosedOutsidePool() throws Throwable
120120 assertEquals ( 0 , tracker .idleChannelCount ( address ) );
121121
122122 // When closed before session.close
123- channel .close ();
123+ channel .close (). sync () ;
124124
125125 // Then
126126 assertEquals ( 1 , tracker .inUseChannelCount ( address ) );
@@ -145,7 +145,7 @@ public void shouldDecreaseIdleWhenClosedInsidePool() throws Throwable
145145 assertEquals ( 1 , tracker .idleChannelCount ( address ) );
146146
147147 // When closed before acquire
148- channel .close ();
148+ channel .close (). sync () ;
149149 // Then
150150 assertEquals ( 0 , tracker .inUseChannelCount ( address ) );
151151 assertEquals ( 0 , tracker .idleChannelCount ( address ) );
You can’t perform that action at this time.
0 commit comments