Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions yarn-project/archiver/src/test/mock_l2_block_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export class MockL2BlockSource implements L2BlockSource {
* @returns A promise that signals the initialization of the l2 block source on completion.
*/
public start(): Promise<void> {
this.log.verbose('Starting mock L2 block source');
return Promise.resolve();
}

Expand All @@ -217,6 +218,7 @@ export class MockL2BlockSource implements L2BlockSource {
* @returns A promise that signals the l2 block source is now stopped.
*/
public stop(): Promise<void> {
this.log.verbose('Stopping mock L2 block source');
return Promise.resolve();
}
}
5 changes: 1 addition & 4 deletions yarn-project/p2p/src/client/p2p_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ describe('In-Memory P2P Client', () => {
client = new P2PClient(P2PClientType.Full, kvStore, blockSource, mempools, p2pService);
});

afterEach(async () => {
await kvStore.close();
});

const advanceToProvenBlock = async (getProvenBlockNumber: number) => {
blockSource.setProvenBlockNumber(getProvenBlockNumber);
await retryUntil(async () => (await client.getSyncedProvenBlockNum()) >= getProvenBlockNumber, 'synced', 10, 0.1);
Expand All @@ -63,6 +59,7 @@ describe('In-Memory P2P Client', () => {
if (client.isReady()) {
await client.stop();
}
await kvStore.close();
});

it('can start & stop', async () => {
Expand Down