Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix test and workflow #218

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading