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
120
120
assertEquals ( 0 , tracker .idleChannelCount ( address ) );
121
121
122
122
// When closed before session.close
123
- channel .close ();
123
+ channel .close (). sync () ;
124
124
125
125
// Then
126
126
assertEquals ( 1 , tracker .inUseChannelCount ( address ) );
@@ -145,7 +145,7 @@ public void shouldDecreaseIdleWhenClosedInsidePool() throws Throwable
145
145
assertEquals ( 1 , tracker .idleChannelCount ( address ) );
146
146
147
147
// When closed before acquire
148
- channel .close ();
148
+ channel .close (). sync () ;
149
149
// Then
150
150
assertEquals ( 0 , tracker .inUseChannelCount ( address ) );
151
151
assertEquals ( 0 , tracker .idleChannelCount ( address ) );
You can’t perform that action at this time.
0 commit comments