Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix curator mismatch test #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smoelius
Copy link

@smoelius smoelius commented Jul 14, 2023

If I understand correctly, the "unless the signer does not match the curator authority" test tries to verify that a call to verify fails.

However, if the call succeeds, the subsequent assert.ok(false) is caught and the test still passes.

This PR revises the test to use the same approach as the "unless the xNFT is suspended" test:

xnft/tests/xnft.spec.ts

Lines 168 to 173 in 1f01ea2

try {
await client.install(xnft, installVault);
assert.ok(false);
} catch (err) {
const e = err as anchor.AnchorError;
assert.strictEqual(e.error.errorCode.code, "SuspendedInstallation");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant