Skip to content

Commit

Permalink
test: error reproduction
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Dec 8, 2023
1 parent b6de4cb commit dbb116a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cli.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches-ignore:
- "master"
paths:
- "cli/**"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -53,6 +51,8 @@ jobs:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/delegator?schema=public"
PROVIDER_URL: "https://api.baobab.klaytn.net:8651"
APP_PORT: "3002"
DELEGATOR_FEEPAYER_PK: ${{ secrets.DELEGATOR_FEEPAYER_PK}}
TEST_DELEGATOR_REPORTER_PK: ${{ secrets.TEST_DELEGATOR_REPORTER_PK}}

- name: Run api
run: yarn api build && yarn api start &
Expand Down
9 changes: 5 additions & 4 deletions cli/test/delegator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
organizationInsertHandler,
organizationRemoveHandler,
reporterInsertHandler,
reporterRemoveHandler
reporterRemoveHandler,
signHandler
} from '../src/delegator'

const unsignedTx = {
Expand Down Expand Up @@ -63,9 +64,9 @@ describe('CLI Delegator', function () {
})

// Sign Transaction
// const signedTx = await signHandler()({ txData: unsignedTx })
// expect(signedTx.succeed).toBe(true)
// console.log(signedTx)
const signedTx = await signHandler()({ txData: unsignedTx })
expect(signedTx.succeed).toBe(true)
console.log(signedTx)

await functionRemoveHandler()({ id: functions.id })
await contractRemoveHandler()({ id: contract.id })
Expand Down

0 comments on commit dbb116a

Please sign in to comment.