Skip to content

Commit

Permalink
fix mn resign test
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Sep 3, 2024
1 parent 6b22e72 commit 8b74201
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions apps/whale-api/src/e2e.defid.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,7 @@ export class DefidBin {
'-oceanarchive',
`-oceanarchiveport=${this.oceanPort}`,
'-oceanarchivebind=0.0.0.0',
...opts
]

const extraArgs = [
// hf
'-amkheight=0',
'-bayfrontheight=1',
'-bayfrontgardensheight=2',
Expand All @@ -703,10 +700,11 @@ export class DefidBin {
'-fortcanningepilogueheight=15',
'-grandcentralheight=16',
'-grandcentralepilogueheight=17',
'-metachainheight=18'
'-metachainheight=18',
...opts
]

const binary = spawn(process.env.DEFID, args.concat(extraArgs))
const binary = spawn(process.env.DEFID, args)

binary.on('error', err => {
if ((err as any).errno === 'ENOENT') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('get', () => {
describe('resign', () => {
beforeAll(async () => {
app = new DefidBin()
await app.start()
await app.start(['-eunospayaheight=200'])
controller = app.ocean.masternodeController
container = app.rpc
await app.waitForBlockHeight(101)
Expand Down

0 comments on commit 8b74201

Please sign in to comment.