upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/test-cvm-roundtrip.mjs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/test-cvm-roundtrip.mjs b/tests/integration/test-cvm-roundtrip.mjs
index 821cfe7..87caf1a 100644
--- a/tests/integration/test-cvm-roundtrip.mjs
+++ b/tests/integration/test-cvm-roundtrip.mjs
@@ -2,7 +2,7 @@ import { execSync } from 'child_process';
2import WebSocket from 'ws'; 2import WebSocket from 'ws';
3 3
4const IP = process.env.TOLLGATE_IP || '10.192.45.1'; 4const IP = process.env.TOLLGATE_IP || '10.192.45.1';
5const CVM_RELAY = process.env.CVM_RELAY || 'wss://relay.primal.net'; 5const CVM_RELAY = process.env.CVM_RELAY || 'wss://nos.lol';
6const NSEC = process.env.CVM_NSEC || 'a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2'; 6const NSEC = process.env.CVM_NSEC || 'a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2';
7 7
8let passed = 0, failed = 0; 8let passed = 0, failed = 0;
@@ -104,7 +104,7 @@ async function runTests() {
104 params: { name: 'get_config', arguments: {} } 104 params: { name: 'get_config', arguments: {} }
105 }); 105 });
106 106
107 const eventOut = nak(`event --kind 25910 --tag p=${npub} --content '${content.replace(/'/g, "'\\''")}' ${CVM_RELAY}`, 8000); 107 const eventOut = nak(`event --sec ${NSEC} --kind 25910 --tag p=${npub} --content '${content.replace(/'/g, "'\\''")}' ${CVM_RELAY}`, 8000);
108 const published = eventOut.includes('Success') || eventOut.includes('"id"'); 108 const published = eventOut.includes('Success') || eventOut.includes('"id"');
109 assert(published, `Published kind 25910 get_config to ${CVM_RELAY}`); 109 assert(published, `Published kind 25910 get_config to ${CVM_RELAY}`);
110 110
@@ -149,7 +149,7 @@ async function runTests() {
149 params: { name: 'get_balance', arguments: {} } 149 params: { name: 'get_balance', arguments: {} }
150 }); 150 });
151 151
152 const eventOut = nak(`event --kind 25910 --tag p=${npub} --content '${content.replace(/'/g, "'\\''")}' ${CVM_RELAY}`, 8000); 152 const eventOut = nak(`event --sec ${NSEC} --kind 25910 --tag p=${npub} --content '${content.replace(/'/g, "'\\''")}' ${CVM_RELAY}`, 8000);
153 const published = eventOut.includes('Success') || eventOut.includes('"id"'); 153 const published = eventOut.includes('Success') || eventOut.includes('"id"');
154 assert(published, `Published kind 25910 get_balance to ${CVM_RELAY}`); 154 assert(published, `Published kind 25910 get_balance to ${CVM_RELAY}`);
155 155