Skip to content

Commit

Permalink
fix: address comments and add skip test condition based on protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-an-yang committed Dec 9, 2022
1 parent 616f81e commit f9645be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions integration-tests/sandbox-drain-delegate-operation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { TezosToolkit } from "@taquito/taquito";
import { TezosToolkit, Protocols } from "@taquito/taquito";
import { CONFIGS, sleep } from "./config";

CONFIGS().forEach(({ lib, rpc, setup, createAddress }) => {
CONFIGS().forEach(({ lib, protocol, rpc, setup, createAddress }) => {
const Tezos = lib;
const flextesaLimaNet = (rpc === 'http://localhost:20000') ? it : it.skip;
const flextesanet = (protocol === Protocols.PtLimaPtL || protocol === Protocols.ProtoALpha) && rpc === 'http://localhost:20000' ? test : test.skip;

describe(`Test Drain Delegate using: ${rpc}`, () => {
let Delegate: TezosToolkit;
Expand Down Expand Up @@ -40,7 +40,7 @@ CONFIGS().forEach(({ lib, rpc, setup, createAddress }) => {
}
done();
})
flextesaLimaNet('Should be able to inject drain_delegate operation', async (done) => {
flextesanet('Should be able to inject drain_delegate operation', async (done) => {
expect((await Delegate.rpc.getBalance(delegatePkh)).toNumber()).toBeGreaterThan(0);
let destinationBalanceBefore = (await Destination.rpc.getBalance(destinationPkh)).toNumber();

Expand Down
2 changes: 1 addition & 1 deletion packages/taquito/src/contract/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export interface ContractProvider extends StorageProvider {

/**
*
* @description Submit drain delegate operation
* @description Submit a drain delegate operation
*
* @returns An operation handle with the result from the RPC node
*
Expand Down

0 comments on commit f9645be

Please sign in to comment.