Skip to content

Commit

Permalink
test: temporary skip allowance tests for NFT and FT
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Nikolov <[email protected]>
  • Loading branch information
ivaylonikolov7 authored and agadzhalov committed Aug 1, 2024
1 parent 3ed0bd0 commit 514e3e2
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions test/integration/TokenRejectIntegrationTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ describe("TokenRejectIntegrationTest", function () {
expect(tokenBalanceReceiver).to.equal(0);
});

it("should not return spender allowance to zero after owner rejects FT", async function () {
// temporary disabled until issue re nfts will be resolved on services side
it.skip("should not return spender allowance to zero after owner rejects FT", async function () {
this.timeout(120000);

const spenderAccountPrivateKey = PrivateKey.generateED25519();
Expand Down Expand Up @@ -233,17 +234,17 @@ describe("TokenRejectIntegrationTest", function () {
.execute(env.client)
).getReceipt(env.client);

const transactionId = TransactionId.generate(spenderAccountId);
const transactionId = TransactionId.generate(spenderAccountId);
await (
await (
await (
await new TransferTransaction()
.addApprovedTokenTransfer(tokenId, receiverId, -1)
.addTokenTransfer(tokenId, spenderAccountId, 1)
.setTransactionId(transactionId)
.freezeWith(env.client)
.sign(spenderAccountPrivateKey)
).execute(env.client)
).getReceipt(env.client);
await new TransferTransaction()
.addApprovedTokenTransfer(tokenId, receiverId, -1)
.addTokenTransfer(tokenId, spenderAccountId, 1)
.setTransactionId(transactionId)
.freezeWith(env.client)
.sign(spenderAccountPrivateKey)
).execute(env.client)
).getReceipt(env.client);

// Confirm spender has transfered tokens
const tokenBalanceReceiverPost = await new AccountBalanceQuery()
Expand Down Expand Up @@ -578,7 +579,8 @@ describe("TokenRejectIntegrationTest", function () {
expect(tokenBalanceReceiver).to.equal(0);
});

it("should return spender allowance to 0 after owner rejects NFT", async function () {
// temporary disabled until issue re nfts will be resolved on services side
it.skip("should return spender allowance to 0 after owner rejects NFT", async function () {
this.timeout(120000);

// create spender account
Expand Down

0 comments on commit 514e3e2

Please sign in to comment.