git » sdk » commit 942b13b

Fix tests

author Stephen Paul Weber
2025-12-28 03:36:08 UTC
committer Stephen Paul Weber
2025-12-28 03:36:08 UTC
parent 0f06d845f6a0afea204b4b22652a92994aec78b0

Fix tests

borogove/Participant.hx +2 -0
borogove/queries/PubsubGet.hx +0 -1
test.hxml +1 -0

diff --git a/borogove/Participant.hx b/borogove/Participant.hx
index a870db6..a5b52fc 100644
--- a/borogove/Participant.hx
+++ b/borogove/Participant.hx
@@ -30,6 +30,7 @@ class Participant {
 		this.jid = jid;
 	}
 
+#if !test
 	public function profile(client: Client): Promise<Profile> {
 		return new Promise((resolve, reject) -> {
 			final get = new PubsubGet(jid.asString(), "urn:xmpp:vcard4");
@@ -45,4 +46,5 @@ class Participant {
 			client.sendQuery(get);
 		});
 	}
+#end
 }
diff --git a/borogove/queries/PubsubGet.hx b/borogove/queries/PubsubGet.hx
index c59600b..53e84e8 100644
--- a/borogove/queries/PubsubGet.hx
+++ b/borogove/queries/PubsubGet.hx
@@ -6,7 +6,6 @@ import haxe.Exception;
 import borogove.ID;
 import borogove.ResultSet;
 import borogove.Stanza;
-import borogove.Stream;
 import borogove.queries.GenericQuery;
 
 class PubsubGet extends GenericQuery {
diff --git a/test.hxml b/test.hxml
index 539a8f9..1bc68e2 100644
--- a/test.hxml
+++ b/test.hxml
@@ -9,6 +9,7 @@
 
 --library utest
 
+-D test
 -D NO_OMEMO
 --run
 test.TestAll