Skip to content

Commit

Permalink
fix: Ignores conferences created for health checks in the tests. (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Aug 31, 2018
1 parent 0179565 commit c870557
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/java/mock/jvb/MockVideobridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ public Jid getBridgeJid()

public int getConferenceCount()
{
return bridge.getConferenceCount();
// Filter out conferences created for health checks
return (int) Arrays.stream(bridge.getConferences())
.filter(Conference::includeInStatistics)
.count();
}

public boolean isReturnServerError()
Expand Down

0 comments on commit c870557

Please sign in to comment.