Skip to content

Commit

Permalink
fix: NodeConnectionManager.seednodes.test.ts now includes scopes fo…
Browse files Browse the repository at this point in the history
…r node addresses
  • Loading branch information
amydevs committed Oct 17, 2023
1 parent 318a248 commit 3f3e6df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/nodes/NodeConnectionManager.seednodes.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Host, Port, TLSConfig } from '@/network/types';
import type { NodeId, NodeIdEncoded } from '@/ids';
import type { NodeAddress } from '@/nodes/types';
import type { NodeAddress, SeedNodes } from '@/nodes/types';
import fs from 'fs';
import path from 'path';
import os from 'os';
Expand Down Expand Up @@ -239,10 +239,11 @@ describe(`${NodeConnectionManager.name} seednodes test`, () => {
});
test('syncNodeGraph handles own nodeId', async () => {
const localNodeId = keyRing.getNodeId();
const seedNodes = {
const seedNodes: SeedNodes = {
[nodesUtils.encodeNodeId(localNodeId)]: {
host: '127.0.0.1' as Host,
port: 55123 as Port,
scopes: ['external']
},
};
nodeConnectionManager = new NodeConnectionManager({
Expand Down Expand Up @@ -294,10 +295,11 @@ describe(`${NodeConnectionManager.name} seednodes test`, () => {
await nodeConnectionManager.stop();
});
test('syncNodeGraph handles offline seed node', async () => {
const seedNodes = {
const seedNodes: SeedNodes = {
[nodesUtils.encodeNodeId(remoteNodeId2)]: {
host: '127.0.0.1' as Host,
port: 55124 as Port,
scopes: ['external']
},
};
nodeConnectionManager = new NodeConnectionManager({
Expand Down

0 comments on commit 3f3e6df

Please sign in to comment.