Skip to content

Commit

Permalink
[worker] use paseo in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Apr 12, 2024
1 parent 094e353 commit dbb582c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/worker-api/src/integriteeWorker.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Keyring } from '@polkadot/api';
import { cryptoWaitReady } from '@polkadot/util-crypto';
import { localDockerNetwork } from './testUtils/networks.js';
import {paseoNetwork} from './testUtils/networks.js';
import { IntegriteeWorker } from './integriteeWorker.js';
import WS from 'websocket';
import {type KeyringPair} from "@polkadot/keyring/types";

const {w3cwebsocket: WebSocket} = WS;

describe('worker', () => {
const network = localDockerNetwork();
const network = paseoNetwork();
let keyring: Keyring;
let worker: IntegriteeWorker;
let alice: KeyringPair;
Expand Down Expand Up @@ -39,7 +39,7 @@ describe('worker', () => {
// skip it, as this requires a worker (and hence a node) to be running
// To my knowledge jest does not have an option to run skipped tests specifically, does it?
// Todo: add proper CI to test this too.
describe.skip('needs worker and node running', () => {
describe('needs worker and node running', () => {
describe('getWorkerPubKey', () => {
it('should return value', async () => {
const result = await worker.getShieldingKey();
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('worker', () => {

describe('balance transfer should work', () => {
it('should return value', async () => {
const shard = network.mrenclave;
const shard = network.chosenCid;
const result = await worker.trustedBalanceTransfer(
alice,
shard,
Expand All @@ -90,7 +90,7 @@ describe('worker', () => {

describe('balance unshield should work', () => {
it('should return value', async () => {
const shard = network.mrenclave;
const shard = network.chosenCid;
const result = await worker.balanceUnshieldFunds(
alice,
shard,
Expand Down

0 comments on commit dbb582c

Please sign in to comment.