File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ func TestConnectToSSEFailure(t *testing.T) {
385
385
config := configContainer {client : & clientCfg }
386
386
387
387
endpoint := newFakeMarathonEndpoint (t , & config )
388
- endpoint .Close ()
388
+ endpoint .CloseServer ()
389
389
390
390
client := endpoint .Client .(* marathonClient )
391
391
@@ -425,7 +425,7 @@ func TestRegisterSEESubscriptionReconnectsStreamOnError(t *testing.T) {
425
425
time .Sleep (SSEConnectWaitTime )
426
426
427
427
// This should make the SSE subscription fail and reconnect to another cluster member
428
- endpoint1 .Close ()
428
+ endpoint1 .CloseServer ()
429
429
430
430
// Give it a bit of time so that the subscription can reconnect
431
431
time .Sleep (SSEConnectWaitTime )
Original file line number Diff line number Diff line change @@ -319,5 +319,10 @@ func (s *fakeServer) Close() {
319
319
}
320
320
321
321
func (e * endpoint ) Close () {
322
+ e .Client .Stop ()
323
+ e .CloseServer ()
324
+ }
325
+
326
+ func (e * endpoint ) CloseServer () {
322
327
e .Server .Close ()
323
328
}
You can’t perform that action at this time.
0 commit comments