Skip to content

Commit b851a34

Browse files
committed
Fix test-proto
1 parent 57c9116 commit b851a34

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

packages/dht/test/unit/PeerManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const createDhtNodeRpcRemote = (
1717
) => {
1818
const remote = new class extends DhtNodeRpcRemote {
1919
// eslint-disable-next-line class-methods-use-this
20-
async ping(): Promise<boolean> {
20+
override async ping(): Promise<boolean> {
2121
return !pingFailures.has(toNodeId(peerDescriptor))
2222
}
2323
}(localPeerDescriptor, peerDescriptor, undefined as any, new MockRpcCommunicator())

packages/dht/test/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const createMockRingNode = async (
6262
rpcRequestTimeout: 5000
6363
}
6464
const node = new class extends DhtNode {
65-
async stop(): Promise<void> {
65+
override async stop(): Promise<void> {
6666
await super.stop()
6767
await mockConnectionManager.stop()
6868
}
@@ -90,7 +90,7 @@ export const createMockConnectionDhtNode = async (
9090
rpcRequestTimeout: 5000
9191
}
9292
const node = new class extends DhtNode {
93-
async stop(): Promise<void> {
93+
override async stop(): Promise<void> {
9494
await super.stop()
9595
await mockConnectionManager.stop()
9696
}

packages/proto-rpc/tsconfig.jest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"src",
55
"test"
66
],
7+
"exclude": [
8+
"test/proto"
9+
],
710
"references": [
811
{ "path": "./tsconfig.proto.json" },
912
{ "path": "../utils/tsconfig.node.json" },

packages/proto-rpc/tsconfig.proto.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "dist"
55
},
66
"include": [
7+
"test/proto",
78
"generated"
89
]
910
}

0 commit comments

Comments
 (0)