Skip to content

Commit

Permalink
Fix delete metadata tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbosborn committed Apr 4, 2022
1 parent ef972e8 commit 052d005
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
});
Expand Down

0 comments on commit 052d005

Please sign in to comment.