xmpp-compliance-tester

XMPP Compliance Tester, forked from github.com/iNPUTmice/ComplianceTester
git clone https://git.in0rdr.ch/xmpp-compliance-tester.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit 8a4d31cd3f646bc6ec5ba8e77106e978a146ed01
parent c4c03bb7b01553844aacffca3709015ebc64c170
Author: Daniel Gultsch <daniel@gultsch.de>
Date:   Wed, 23 Aug 2017 16:58:46 +0200

destroy room after compliance test run

Diffstat:
Msrc/main/java/eu/siacs/compliance/tests/MamMuc.java | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/eu/siacs/compliance/tests/MamMuc.java b/src/main/java/eu/siacs/compliance/tests/MamMuc.java @@ -30,7 +30,9 @@ public class MamMuc extends AbstractTest { ChatRoom room = chatService.createRoom(UUID.randomUUID().toString()); room.enter("test"); final Set<String> f = serviceDiscoveryManager.discoverInformation(room.getAddress()).getResult().getFeatures(); - return f.contains("urn:xmpp:mam:0") || f.contains("urn:xmpp:mam:1") || f.contains("urn:xmpp:mam:2") ? Result.PASSED : Result.FAILED; + final boolean mam = f.contains("urn:xmpp:mam:0") || f.contains("urn:xmpp:mam:1") || f.contains("urn:xmpp:mam:2"); + room.destroy().getResult(); + return mam ? Result.PASSED : Result.FAILED; } catch (XmppException e) { return Result.FAILED; }