Skip to content

Commit

Permalink
fix test and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
artyukh committed Dec 13, 2023
1 parent 17e99de commit 1d655bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
12 changes: 6 additions & 6 deletions test/05_DebridgePipeline.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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");
});

Expand Down

0 comments on commit 1d655bb

Please sign in to comment.