From 1d655bb64d76556776c2c204572c5d59da76738b Mon Sep 17 00:00:00 2001 From: artyukh Date: Thu, 14 Dec 2023 01:12:01 +0400 Subject: [PATCH] fix test and workflow --- .github/workflows/pipeline.yml | 2 +- test/05_DebridgePipeline.test.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 8610d38d..d73b5b5d 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -14,7 +14,7 @@ on: jobs: build: name: Test - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest env: TEST_BSC_PROVIDER: https://bsc-dataseed.binance.org/ diff --git a/test/05_DebridgePipeline.test.js b/test/05_DebridgePipeline.test.js index 04796656..660d8d36 100644 --- a/test/05_DebridgePipeline.test.js +++ b/test/05_DebridgePipeline.test.js @@ -1596,9 +1596,9 @@ contract("DeBridgeGate real pipeline mode", function () { }); const deEmptyNameTokenAddressInBSC = pairAddedEvent.args.tokenAddress; const deEmptyNameToken = await DeBridgeToken.at(deEmptyNameTokenAddressInBSC); - assert.equal(await deEmptyNameToken.symbol(), "deNONAME"); + assert.equal(await deEmptyNameToken.symbol(), "NONAME"); // detoken name should use symbol because original name is empty - assert.equal(await deEmptyNameToken.name(), "deBridge NONAME"); + assert.equal(await deEmptyNameToken.name(), "NONAME"); assert.equal((await deEmptyNameToken.decimals()).toString(), "18"); // console.log(`deBNBAddressInHECO ${deBNBAddressInHECO}`); @@ -1612,14 +1612,14 @@ contract("DeBridgeGate real pipeline mode", function () { // console.log(await deBridgeTokenInstance.symbol()); // console.log(await deBridgeTokenInstance.name()); // console.log(await deBridgeTokenInstance.decimals()); - assert.equal(await deBridgeTokenInstance.symbol(), "deETH"); - assert.equal(await deBridgeTokenInstance.name(), "deBridge ETH"); + assert.equal(await deBridgeTokenInstance.symbol(), "ETH"); + assert.equal(await deBridgeTokenInstance.name(), "ETH"); assert.equal((await deBridgeTokenInstance.decimals()).toString(), "18"); const deBNBInHecoTokenInstance = await DeBridgeToken.at(deBNBAddressInHECO); - assert.equal(await deBNBInHecoTokenInstance.symbol(), "deWBNB"); - assert.equal(await deBNBInHecoTokenInstance.name(), "deBridge Wrapped BNB"); + assert.equal(await deBNBInHecoTokenInstance.symbol(), "WBNB"); + assert.equal(await deBNBInHecoTokenInstance.name(), "Wrapped BNB"); assert.equal((await deBNBInHecoTokenInstance.decimals()).toString(), "18"); });