Skip to content

Commit

Permalink
removing mainnet unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Jul 23, 2024
1 parent 2264d3d commit 0b136f1
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/agent/src/actor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,25 +372,3 @@ describe('makeActor', () => {
});

jest.setTimeout(20000);

test('v3 call', async () => {
jest.useRealTimers();
const agent = await HttpAgent.create({
shouldFetchRootKey: true,
host: 'http://localhost:4943',
});

const idlFactory = ({ IDL }) => {
return IDL.Service({
write: IDL.Func([IDL.Nat], [], []),
inc_read: IDL.Func([], [IDL.Nat], []),
});
};
const actor = Actor.createActor(idlFactory, {
canisterId: Principal.fromText('bkyz2-fmaaa-aaaaa-qaaaq-cai'),
agent,
});
await actor.write(0n);
const result = await actor.inc_read();
expect(result).toBe(1n);
});

0 comments on commit 0b136f1

Please sign in to comment.