Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Jun 4, 2024
1 parent 6ab3c5b commit a95e17f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion packages/discovery/src/dns/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export const enrTree = {
DEFAULT_PUBSUB:
"enrtree://ANEDLO25QVUGJOUTQFRYKWX6P4Z4GKVESBMHML7DZ6YK4LGS5FC5O@prod.wakuv2.nodes.status.im",
TWN_SANDBOX:
"enrtree://AIRVQ5DDA4FFWLRBCHJWUWOO6X6S4ZTZ5B667LQ6AJU6PEYDLRD5O@sandbox.waku.nodes.status.im"
"enrtree://AIRVQ5DDA4FFWLRBCHJWUWOO6X6S4ZTZ5B667LQ6AJU6PEYDLRD5O@sandbox.waku.nodes.status.im",
TWN_TEST:
"enrtree://AOGYWMBYOUIMOENHXCHILPKY3ZRFEULMFI4DOM442QSZ73TT2A7VI@test.waku.nodes.status.im"
};

export const DEFAULT_BOOTSTRAP_TAG_NAME = "bootstrap";
Expand Down
4 changes: 2 additions & 2 deletions packages/discovery/src/dns/dns.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ describe("DNS Node Discovery [live data]", function () {
this.timeout(10000);
// Google's dns server address. Needs to be set explicitly to run in CI
const dnsNodeDiscovery = await DnsNodeDiscovery.dnsOverHttp();
const peers = await dnsNodeDiscovery.getPeers([enrTree.TEST], {
const peers = await dnsNodeDiscovery.getPeers([enrTree.TWN_TEST], {
relay: maxQuantity,
store: maxQuantity,
filter: maxQuantity,
Expand All @@ -298,7 +298,7 @@ describe("DNS Node Discovery [live data]", function () {
this.timeout(10000);
// Google's dns server address. Needs to be set explicitly to run in CI
const dnsNodeDiscovery = await DnsNodeDiscovery.dnsOverHttp();
const peers = await dnsNodeDiscovery.getPeers([enrTree.SANDBOX], {
const peers = await dnsNodeDiscovery.getPeers([enrTree.TWN_SANDBOX], {
relay: maxQuantity,
store: maxQuantity,
filter: maxQuantity,
Expand Down
8 changes: 4 additions & 4 deletions packages/tests/tests/dns-peer-discovery.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("DNS Discovery: Compliance Test", function () {
} as unknown as Libp2pComponents;

return new PeerDiscoveryDns(components, {
enrUrls: [enrTree["SANDBOX"]],
enrUrls: [enrTree["TWN_SANDBOX"]],
wantedNodeCapabilityCount: {
filter: 1
}
Expand Down Expand Up @@ -66,7 +66,7 @@ describe("DNS Node Discovery [live data]", function () {
const waku = await createLightNode({
libp2p: {
peerDiscovery: [
wakuDnsDiscovery([enrTree["SANDBOX"]], nodeRequirements)
wakuDnsDiscovery([enrTree["TWN_SANDBOX"]], nodeRequirements)
]
}
});
Expand All @@ -93,7 +93,7 @@ describe("DNS Node Discovery [live data]", function () {
// Google's dns server address. Needs to be set explicitly to run in CI
const dnsNodeDiscovery = await DnsNodeDiscovery.dnsOverHttp();

const peers = await dnsNodeDiscovery.getPeers([enrTree["SANDBOX"]], {
const peers = await dnsNodeDiscovery.getPeers([enrTree["TWN_SANDBOX"]], {
relay: maxQuantity,
store: maxQuantity,
filter: maxQuantity,
Expand All @@ -120,7 +120,7 @@ describe("DNS Node Discovery [live data]", function () {
const waku = await createLightNode({
libp2p: {
peerDiscovery: [
wakuDnsDiscovery([enrTree["SANDBOX"], enrTree["TEST"]], {
wakuDnsDiscovery([enrTree["TWN_SANDBOX"], enrTree["TWN_TEST"]], {
filter: nodesToConnect
})
]
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/tests/waku.node.optional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe("Use static and several ENR trees for bootstrap", function () {
peerDiscovery: [
bootstrap({ list: [multiAddrWithId.toString()] }),
wakuDnsDiscovery(
[enrTree["SANDBOX"], enrTree["TEST"]],
[enrTree["TWN_SANDBOX"], enrTree["TWN_TEST"]],
NODE_REQUIREMENTS
)
]
Expand Down

0 comments on commit a95e17f

Please sign in to comment.