X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test-e2e%2Ftest-many.js;fp=test-e2e%2Ftest-many.js;h=bc149624b1a817d7b88ffd6f6854f40c60b5af3d;hb=f7e70910f579079d04c4cbeff750c8721a51fbe6;hp=1ff40c969a204d926ed50f45f3647f69188c68f4;hpb=02d9e6e66b116454a944b47e5dbed31a7d6c061d;p=websub-hub diff --git a/test-e2e/test-many.js b/test-e2e/test-many.js index 1ff40c9..bc14962 100644 --- a/test-e2e/test-many.js +++ b/test-e2e/test-many.js @@ -1,7 +1,6 @@ 'use strict'; -const assert = require('assert'); -const uuid = require('uuid'); +const crypto = require('crypto'); const FakeServersClient = require('./fake-servers-client'); const subscriberPort = process.env.FAKE_SUBSCRIBER_PORT || 9876; @@ -14,14 +13,14 @@ const hubUrl = `http://${hubAddress}:${hubPort}/`; const client = new FakeServersClient(listenAddress, subscriberPort, topicPort); async function newTopic() { - const id = uuid.v4(); + const id = crypto.randomUUID(); await client.topicSet(id, { hubUrl }); console.log('created fake topic', id); return id; } async function newSubscriber() { - const id = uuid.v4(); + const id = crypto.randomUUID(); await client.subscriberSetVerify(id); console.log('created fake subscriber', id); return id;