From 052d005e84128cb784ab44e48d68d9dfc07ea2ba Mon Sep 17 00:00:00 2001 From: cbosborn Date: Mon, 4 Apr 2022 00:08:38 -0400 Subject: [PATCH] Fix delete metadata tests. --- tests/test-v1.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test-v1.ts b/tests/test-v1.ts index cf551f4..24fa11a 100644 --- a/tests/test-v1.ts +++ b/tests/test-v1.ts @@ -35,7 +35,6 @@ anchor.setProvider(anchor.Provider.local()); describe('Protocol v1 test', () => { const program: anchor.Program = anchor.workspace.Dialect; const connection = program.provider.connection; - console.log('program', program); describe('Metadata tests', () => { let owner: Program; @@ -62,11 +61,11 @@ describe('Protocol v1 test', () => { it('Owner deletes metadata', async () => { for (const member of [owner, writer]) { - await createMetadata(program, member); - await getMetadata(program, member.publicKey); - await deleteMetadata(program, member); + await createMetadata(member); + await getMetadata(member, member.provider.wallet.publicKey); + await deleteMetadata(member); chai - .expect(getMetadata(program, member.publicKey)) + .expect(getMetadata(member, member.provider.wallet.publicKey)) .to.eventually.be.rejectedWith(Error); } });