Skip to content

Commit

Permalink
fix: use noop instead of mock telemetry client
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Aug 22, 2024
1 parent 9b5614c commit b2cfad7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yarn-project/prover-node/src/prover-node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@aztec/circuit-types';
import { type L1Publisher } from '@aztec/sequencer-client';
import { type PublicProcessorFactory, type SimulationProvider } from '@aztec/simulator';
import { type TelemetryClient } from '@aztec/telemetry-client';
import { NoopTelemetryClient } from '@aztec/telemetry-client/noop';
import { type ContractDataSource } from '@aztec/types/contracts';
import { WorldStateRunningState, type WorldStateSynchronizer } from '@aztec/world-state';

Expand All @@ -25,7 +25,6 @@ describe('prover-node', () => {
let worldState: MockProxy<WorldStateSynchronizer>;
let txProvider: MockProxy<TxProvider>;
let simulator: MockProxy<SimulationProvider>;
let telemetryClient: MockProxy<TelemetryClient>;

let proverNode: TestProverNode;

Expand All @@ -45,7 +44,7 @@ describe('prover-node', () => {
worldState = mock<WorldStateSynchronizer>();
txProvider = mock<TxProvider>();
simulator = mock<SimulationProvider>();
telemetryClient = mock<TelemetryClient>();
const telemetryClient = new NoopTelemetryClient();

// World state returns a new mock db every time it is asked to fork
worldState.syncImmediateAndFork.mockImplementation(() => Promise.resolve(mock<MerkleTreeOperations>()));
Expand Down

0 comments on commit b2cfad7

Please sign in to comment.