aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-16 10:15:27 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-12-16 10:17:39 +0100
commit51872b82a1187aaecc0c91c4eaf04f37fff5c506 (patch)
treeae1bedcc7a1dfdca56081ca42f2663ae12687338
parentced38c0ffe1e7d30f1f80fe704e571f39b0cc78b (diff)
downloadPeerTube-51872b82a1187aaecc0c91c4eaf04f37fff5c506.tar.gz
PeerTube-51872b82a1187aaecc0c91c4eaf04f37fff5c506.tar.zst
PeerTube-51872b82a1187aaecc0c91c4eaf04f37fff5c506.zip
Fix tests
-rw-r--r--server/tests/fixtures/peertube-plugin-test-six/main.js2
-rw-r--r--server/tests/plugins/plugin-storage.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-six/main.js b/server/tests/fixtures/peertube-plugin-test-six/main.js
index 4a9d56ea7..243b041e7 100644
--- a/server/tests/fixtures/peertube-plugin-test-six/main.js
+++ b/server/tests/fixtures/peertube-plugin-test-six/main.js
@@ -17,7 +17,7 @@ async function register ({
17 logger.info('superkey stored value is %s', result.value) 17 logger.info('superkey stored value is %s', result.value)
18 18
19 const storedArrayValue = await storageManager.getData('storedArrayKey') 19 const storedArrayValue = await storageManager.getData('storedArrayKey')
20 logger.info('storedArrayKey value type is %s', typeof storedArrayValue) 20 logger.info('storedArrayKey isArray is %s', Array.isArray(storedArrayValue) ? 'true' : 'false')
21 logger.info('storedArrayKey stored value is %s', storedArrayValue.join(', ')) 21 logger.info('storedArrayKey stored value is %s', storedArrayValue.join(', '))
22 } 22 }
23 23
diff --git a/server/tests/plugins/plugin-storage.ts b/server/tests/plugins/plugin-storage.ts
index ac519045d..c0596819e 100644
--- a/server/tests/plugins/plugin-storage.ts
+++ b/server/tests/plugins/plugin-storage.ts
@@ -32,7 +32,7 @@ describe('Test plugin storage', function () {
32 }) 32 })
33 33
34 it('Should correctly retrieve an array as array from the storage.', async function () { 34 it('Should correctly retrieve an array as array from the storage.', async function () {
35 await server.servers.waitUntilLog('storedArrayKey value type is array') 35 await server.servers.waitUntilLog('storedArrayKey isArray is true')
36 await server.servers.waitUntilLog('storedArrayKey stored value is toto, toto2') 36 await server.servers.waitUntilLog('storedArrayKey stored value is toto, toto2')
37 }) 37 })
38 }) 38 })