File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
modules/cpr/src/test/java/org/atmosphere/cpr Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -256,16 +256,12 @@ public void onPreDestroy(Broadcaster b) {
256
256
257
257
@ Test
258
258
public void shouldCleanUpBroadcasterUponDestory (){
259
- AtmosphereConfig config = config .getAtmosphereConfig ();
260
259
DefaultBroadcasterFactory broadcasterFactory = new DefaultBroadcasterFactory (SimpleBroadcaster .class , "NEVER" , config );
261
- mFramework .setBroadcasterFactory (broadcasterFactory );
262
260
Broadcaster b1 = broadcasterFactory .lookup ("/LEAK/EXISTS" , true );
263
261
264
- Assert .assertEquals (1 , mMonitorStatistics .getServerPushConnectionsCount ());
265
-
266
262
b1 .destroy ();
267
-
268
- Assert .assertEquals ( 0 , mMonitorStatistics . getServerPushConnectionsCount ( ));
263
+
264
+ Assert .assertNull ( broadcasterFactory . lookup ( "/LEAJ/EXISTS" ));
269
265
}
270
266
271
267
@ Test
You can’t perform that action at this time.
0 commit comments