Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Fixup account compression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Jul 25, 2024
1 parent 041a1f9 commit 5705efe
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 46 deletions.
8 changes: 4 additions & 4 deletions account-compression/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion account-compression/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"devDependencies": {
"@metaplex-foundation/rustbin": "^0.3.5",
"@metaplex-foundation/solita": "0.20.1",
"@project-serum/anchor": "^0.26.0",
"@coral-xyz/anchor": "^0.27.0",
"@solana/eslint-config-solana": "^3.0.3",
"@solana/prettier-config-solana": "^0.0.5",
"@types/bn.js": "^5.1.0",
Expand Down
6 changes: 3 additions & 3 deletions account-compression/sdk/tests/accountCompression.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { strict as assert } from 'node:assert';

import { AnchorProvider } from '@project-serum/anchor';
import NodeWallet from '@project-serum/anchor/dist/cjs/nodewallet';
import { AnchorProvider } from '@coral-xyz/anchor';
import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet';
import { Connection, Keypair, PublicKey, TransactionInstruction } from '@solana/web3.js';
import { BN } from 'bn.js';
import * as crypto from 'crypto';
Expand Down Expand Up @@ -385,7 +385,7 @@ describe('Account Compression', () => {
await execute(provider, ixs, [payerKeypair]);
}
});
it('Testing canopy for appends and replaces on a full on chain tree', async () => {
it.only('Testing canopy for appends and replaces on a full on chain tree', async () => {
[cmtKeypair, offChainTree] = await createTreeOnChain(
provider,
payerKeypair,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { strict as assert } from 'node:assert';

import { AnchorProvider } from '@project-serum/anchor';
import NodeWallet from '@project-serum/anchor/dist/cjs/nodewallet';
import { AnchorProvider } from '@coral-xyz/anchor';
import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet';
import { Connection, Keypair, PublicKey } from '@solana/web3.js';

import { ALL_DEPTH_SIZE_PAIRS, ConcurrentMerkleTreeAccount, getConcurrentMerkleTreeAccountSize } from '../../src';
Expand Down
6 changes: 3 additions & 3 deletions account-compression/sdk/tests/events/changelog.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { strict as assert } from "node:assert";

import { AnchorProvider } from "@project-serum/anchor";
import NodeWallet from "@project-serum/anchor/dist/cjs/nodewallet";
import { bs58 } from "@project-serum/anchor/dist/cjs/utils/bytes";
import { AnchorProvider } from "@coral-xyz/anchor";
import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet";
import { bs58 } from "@coral-xyz/anchor/dist/cjs/utils/bytes";
import { Connection, Keypair, PublicKey } from "@solana/web3.js";
import { BN } from "bn.js";
import * as crypto from "crypto";
Expand Down
6 changes: 3 additions & 3 deletions account-compression/sdk/tests/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnchorProvider } from '@project-serum/anchor';
import { AnchorProvider } from '@coral-xyz/anchor';
import { Keypair, SendTransactionError, Signer, Transaction, TransactionInstruction } from '@solana/web3.js';
import * as crypto from 'crypto';

Expand All @@ -9,7 +9,7 @@ import { MerkleTree } from '../src/merkle-tree';
export async function confirmAndLogTx(provider: AnchorProvider, txId: string, verbose = false) {
const tx = await provider.connection.confirmTransaction(txId, 'confirmed');
if (tx.value.err || verbose) {
console.log((await provider.connection.getConfirmedTransaction(txId, 'confirmed'))!.meta!.logMessages);
console.log((await provider.connection.getTransaction(txId, { commitment: 'confirmed' }))!.meta!.logMessages);
}
if (tx.value.err) {
console.log('Transaction failed');
Expand Down Expand Up @@ -43,7 +43,7 @@ export async function execute(
}

if (verbose && txid) {
console.log((await provider.connection.getConfirmedTransaction(txid, 'confirmed'))!.meta!.logMessages);
console.log((await provider.connection.getTransaction(txid, { commitment: 'confirmed' }))!.meta!.logMessages);
}

return txid;
Expand Down
60 changes: 30 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5705efe

Please sign in to comment.