aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-25 11:16:48 +0200
committerClombrong <cromblong@egregore.fun>2025-06-25 11:16:48 +0200
commit31f96c0f04df6265bc26edaceaf7881451dc85bb (patch)
tree412713a618bbbf46b6dacbf8bde34eb28e4cdff1 /test
parentb232ea90be69cfa1af58503405782786b8e45421 (diff)
feat(native_hello): integrate env credentials
Diffstat (limited to 'test')
-rw-r--r--test/native/native_hello.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/native/native_hello.ml b/test/native/native_hello.ml
index ea57e57..bb38ee6 100644
--- a/test/native/native_hello.ml
+++ b/test/native/native_hello.ml
@@ -1,2 +1,5 @@
let () =
- print_endline "Hello, world!"
+ let jid = Sys.getenv "FLESH_JID"
+ and _password = Sys.getenv "FLESH_PASSWORD"
+ in let domain = (List.nth (String.split_on_char '@' jid) 1)
+ in print_endline domain