Skip to content

Commit

Permalink
chore: flaky discv5, increasing jest timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Apr 24, 2024
1 parent 6078bb0 commit e4135f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ function generateNotesGetter(input: ContractArtifact) {
.join(',\n');

return `public static get notes(): ContractNotes<${notesUnionType}> {
const notes = this.artifact.outputs.globals.notes ? (this.artifact.outputs.globals.notes as any) : [];
return {
${noteMetadata}
} as ContractNotes<${notesUnionType}>;
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/foundation/src/abi/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export type ContractNote = {
*/
id: Fr;
/**
* Type of the note
* Type of the note (e.g., 'TransparentNote')
*/
typ: string;
};
Expand All @@ -291,7 +291,7 @@ export type FieldLayout = {
*/
slot: Fr;
/**
* Type being stored at the slot
* Type being stored at the slot (e.g., 'Map<AztecAddress, PublicMutable<U128>>')
*/
typ: string;
};
Expand Down
3 changes: 3 additions & 0 deletions yarn-project/p2p/src/service/discv5_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { jest } from '@jest/globals';
import type { PeerId } from '@libp2p/interface';

import { BootstrapNode } from '../bootstrap/bootstrap.js';
Expand All @@ -21,6 +22,8 @@ const waitForPeers = (node: DiscV5Service, expectedCount: number): Promise<void>
};

describe('Discv5Service', () => {
jest.setTimeout(10_000);

let bootNode: BootstrapNode;
let bootNodePeerId: PeerId;
let port = 1234;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ describe('Private Execution test suite', () => {
const secret = new Fr(1n);
const secretHash = computeSecretHash(secret);
const note = new Note([secretHash]);
// @todo @LHerskind Need to investigate why this was working with `new Fr(5)` as the `example_set = 2` should have caused a failure.
// @todo @LHerskind (#6001) Need to investigate why this was working with `new Fr(5)` as the `example_set = 2` should have caused a failure.
const storageSlot = TestContractArtifact.storageLayout['example_set'].slot;
oracle.getNotes.mockResolvedValue([
{
Expand Down

0 comments on commit e4135f3

Please sign in to comment.