Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
amydevs committed Sep 2, 2024
1 parent 6c98392 commit 0fd2f38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/nodes/NodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import * as nodesErrors from './errors';
import * as agentErrors from './agent/errors';
import NodeConnectionQueue from './NodeConnectionQueue';
import { assertClaimNetworkAuthority } from '../claims/payloads/claimNetworkAuthority';
import { assertClaimNetworkAccess } from '../claims/payloads/claimNetworkAccess';
import Token from '../tokens/Token';
import * as keysUtils from '../keys/utils';
import * as tasksErrors from '../tasks/errors';
Expand All @@ -59,7 +60,6 @@ import * as claimsErrors from '../claims/errors';
import * as utils from '../utils/utils';
import config from '../config';
import * as networkUtils from '../network/utils';
import { assertClaimNetworkAccess } from '../claims/payloads/claimNetworkAccess';

const abortEphemeralTaskReason = Symbol('abort ephemeral task reason');
const abortSingletonTaskReason = Symbol('abort singleton task reason');
Expand Down
11 changes: 5 additions & 6 deletions tests/nodes/agent/handlers/nodesClaimNetworkVerify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ import Logger, { LogLevel, StreamHandler } from '@matrixai/logger';
import { QUICClient, QUICServer, events as quicEvents } from '@matrixai/quic';
import { DB } from '@matrixai/db';
import { RPCClient, RPCServer } from '@matrixai/rpc';
import { nodesClaimNetworkVerify } from '@/nodes/agent/callers';
import { Token } from '@/tokens';
import Sigchain from '@/sigchain/Sigchain';
import KeyRing from '@/keys/KeyRing';
import NodeGraph from '@/nodes/NodeGraph';
import { nodesClaimNetworkVerify } from '@/nodes/agent/callers';
import NodesClaimNetworkVerify from '@/nodes/agent/handlers/NodesClaimNetworkVerify';
import ACL from '@/acl/ACL';
import NodeManager from '@/nodes/NodeManager';
import GestaltGraph from '@/gestalts/GestaltGraph';
import TaskManager from '@/tasks/TaskManager';
import * as keysUtils from '@/keys/utils';
import * as claimsUtils from '@/claims/utils';
import { Token } from '@/tokens';
import * as nodesUtils from '@/nodes/utils';
import { generateKeyPair } from '@/keys/utils/generate';
import * as networkUtils from '@/network/utils';
import * as tlsTestsUtils from '../../../utils/tls';

Expand Down Expand Up @@ -201,7 +200,7 @@ describe('nodesClaimNetworkVerify', () => {
logger,
});

clientKeyPair = generateKeyPair();
clientKeyPair = keysUtils.generateKeyPair();

localNodeId = keysUtils.publicKeyToNodeId(clientKeyPair.publicKey);
const tlsConfigClient = await tlsTestsUtils.createTLSConfig(clientKeyPair);
Expand All @@ -221,9 +220,9 @@ describe('nodesClaimNetworkVerify', () => {
logger,
});

authorityKeyPair = generateKeyPair();
authorityKeyPair = keysUtils.generateKeyPair();
authorityNodeId = keysUtils.publicKeyToNodeId(authorityKeyPair.publicKey);
seedKeyPair = generateKeyPair();
seedKeyPair = keysUtils.generateKeyPair();
seedNodeId = keysUtils.publicKeyToNodeId(seedKeyPair.publicKey);
const authorityClaimId =
claimsUtils.createClaimIdGenerator(authorityNodeId)();
Expand Down

0 comments on commit 0fd2f38

Please sign in to comment.