File: disable-network-tests.patch

package info (click to toggle)
node-wikibase-cli 15.15.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,852 kB
  • sloc: javascript: 4,540; sh: 26; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Disable network access in tests.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/test/lib/utils.js
+++ b/test/lib/utils.js
@@ -37,7 +37,7 @@
 
   shellExec,
 
-  wdTest: async cmd => shellExec(`export WB_INSTANCE=https://test.wikidata.org ; ./bin/wb ${cmd}`),
+  wdTest: async cmd => shellExec(`export WB_INSTANCE=https://127.0.0.1/wikidata ; ./bin/wb ${cmd}`),
 
   wbDry: async cmd => shellExec(`./bin/wb ${cmd} --dry`),