hyperledger-labs / perun-node

State channel node of the blockchain-agnostic state channels framework Perun.
https://labs.hyperledger.org/perun-doc/
Apache License 2.0
18 stars 12 forks source link

163 add tests for collaborative and non-collaborative close #164

Closed manoranjith closed 3 years ago

manoranjith commented 3 years ago

Description

Added test cases for both collaborative and non-collaborative close in integration tests.

Category

Implementation Task

Relevant issue

Closes #163.

Testing

The test cases are added to Test_Integ_Role.

Steps to run the tests
  1. In one terminal:
    ganache-cli -b 1 --account="0x1fedd636dbc7e8d41a0622a2040b86fea8842cef9d4aa4c582aad00465b7acff,100000000000000000000" --account="0xb0309c60b4622d3071fad3e16c2ce4d0b1e7758316c187754f4dd0cfb44ceb33,100000000000000000000"
  2. In another terminal:
    cd session && go test -cover -p 1 -count=1 -tags=integration -run Test_Integ_Role

Checklist

manoranjith commented 3 years ago

Rebasing to latest develop branch

manoranjith commented 3 years ago

I have accepted your changes, can you please review it again. @anagha-ks