@@ -109,8 +109,8 @@ func TestEventDisconnect(t *testing.T) {
109109 t .Setenv ("COHERENCE_SESSION_DEBUG" , "true" )
110110 //g, session := initTest(t)
111111 g , session := initTest (t ,
112- coherence .WithDisconnectTimeout (time .Duration (130000 )* time .Millisecond ),
113- coherence .WithReadyTimeout (time .Duration (70 )* time .Second ))
112+ coherence .WithDisconnectTimeout (time .Duration (130 )* time .Second ),
113+ coherence .WithReadyTimeout (time .Duration (130 )* time .Second ))
114114 defer session .Close ()
115115
116116 namedCache := GetNamedCache [string , string ](g , session , "test-reconnect-cache" )
@@ -132,7 +132,7 @@ func TestEventDisconnectWithReadyTimeoutDelay(t *testing.T) {
132132 t .Error ("Unable to issue post request to stop gRPC proxy" )
133133 }
134134
135- g , session := initTest (t , coherence .WithReadyTimeout (time .Duration (130000 )* time .Millisecond ))
135+ g , session := initTest (t , coherence .WithReadyTimeout (time .Duration (130 )* time .Second ))
136136 defer session .Close ()
137137
138138 namedCache := GetNamedCache [string , string ](g , session , "test-reconnect-cache" )
@@ -275,11 +275,19 @@ func RunTestReconnect(g *gomega.WithT, namedMap coherence.NamedMap[string, strin
275275 // issue a stop, which better simulates a sudden disconnect
276276 // vs shutdown (which is graceful), for the "$GRPC:GrpcProxy" on node 1.
277277 // the client should eventually connect
278- fmt .Println ("Issue stop of $GRPC:GrpcProxy" )
278+ log .Println ("Issue stop of $GRPC:GrpcProxy" )
279279 _ , err = IssuePostRequest ("http://127.0.0.1:30000/management/coherence/cluster/services/$GRPC:GrpcProxy/members/1/stop" )
280280 g .Expect (err ).ShouldNot (gomega .HaveOccurred ())
281281 }
282282
283+ // get the size to force reconnect
284+ log .Println ("Issue Size() to force reconnect" )
285+ _ , err = namedMap .Size (ctx )
286+ g .Expect (err ).ShouldNot (gomega .HaveOccurred ())
287+
288+ log .Println ("Sleeping to test re-connect" )
289+ Sleep (5 )
290+
283291 // add another 'additional' mutations
284292 createMutations (g , namedMap , additional )
285293
@@ -295,6 +303,7 @@ func RunTestReconnect(g *gomega.WithT, namedMap coherence.NamedMap[string, strin
295303// createMutations creates a specified number of data mutations.
296304func createMutations (g * gomega.WithT , namedMap coherence.NamedMap [string , string ], iters int ) {
297305 var err error
306+ log .Println ("createMutations, iters=" , iters )
298307 for i := 0 ; i < iters ; i ++ {
299308 key := fmt .Sprintf ("key-%d" , i )
300309 value := fmt .Sprintf ("value-%d" , i )
0 commit comments