Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Jul 22, 2024
1 parent 567c63f commit 5f2344a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ jobs:
- run:
working_directory: wasm
command: |
cargo clippy
cargo clippy --features testnet
cargo clippy --features mainnet
check-fmt:
executor: rust-node
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/account.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {jest} from '@jest/globals'
import { Account, Address, PrivateKey, RecordCiphertext, ViewKey } from '../src/node'
import { Account, Address, PrivateKey, RecordCiphertext, ViewKey } from '../src/testnet/node'
import { seed, message, beaconPrivateKeyString, beaconViewKeyString, beaconAddressString, recordCiphertextString, foreignCiphertextString, recordPlaintextString } from './data/account-data';


Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/key-provider.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AleoKeyProvider, CachedKeyPair, CREDITS_PROGRAM_KEYS, FunctionKeyPair, OfflineKeyProvider, ProvingKey, VerifyingKey} from "../src/node";
import {AleoKeyProvider, CachedKeyPair, CREDITS_PROGRAM_KEYS, FunctionKeyPair, OfflineKeyProvider, ProvingKey, VerifyingKey} from "../src/testnet/node";
import {jest} from '@jest/globals'
jest.retryTimes(1);

Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/network-client.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {jest} from '@jest/globals'
import {Account, Block, AleoNetworkClient, TransactionModel} from "../src/node";
import {Account, Block, AleoNetworkClient, TransactionModel} from "../src/testnet/node";
import {beaconAddressString, beaconPrivateKeyString} from "./data/account-data";
import {log} from "console";
jest.retryTimes(3);
Expand Down
4 changes: 2 additions & 2 deletions sdk/tests/program-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
statePathRecordOwnerPrivateKey,
stateRoot
} from "./data/account-data";
import { Account, ExecutionResponse, OfflineQuery, ProgramManager, RecordPlaintext } from "../src/node";
import { Account, ExecutionResponse, OfflineQuery, ProgramManager, RecordPlaintext } from "../src/testnet/node";
jest.retryTimes(3);

describe('Program Manager', () => {
Expand Down Expand Up @@ -41,4 +41,4 @@ describe('Program Manager', () => {
// TODO
}, 420000);
});
});
});
2 changes: 1 addition & 1 deletion sdk/tests/record-provider.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {jest} from '@jest/globals'
import {Account, AleoNetworkClient, BlockHeightSearch, NetworkRecordProvider} from "../src/node";
import {Account, AleoNetworkClient, BlockHeightSearch, NetworkRecordProvider} from "../src/testnet/node";
import {beaconPrivateKeyString} from "./data/account-data";
import {log} from "console";
jest.retryTimes(3);
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/wasm.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Address, PrivateKey, ViewKey, Signature, RecordCiphertext, RecordPlaintext, PrivateKeyCiphertext } from "../src/node";
import { Address, PrivateKey, ViewKey, Signature, RecordCiphertext, RecordPlaintext, PrivateKeyCiphertext } from "../src/testnet/node";
import {
seed,
message,
Expand Down

0 comments on commit 5f2344a

Please sign in to comment.