Recently the go-perun version used in perun-node was updated to v0.6.0. In this version the channel closing logic differs significantly for collaborative and non-collaborative case.
Each of the two cases have been handled differently in perun node (see HandleAdjudicator function in session/channel.go for detailed explanation). Hence integration tests should cover both these cases. Currently it covers only collaborative close.
Description
To cover both collaborative and non collaborative case in integration tests, in Test_Integ_Role,
Create two channels (currently only one is created).
Close one of them in collaborative way and the other in non collaborative way.
Relates to
Follow up from #161
Testing
The modified tests should cover collaborative and non collaborative close.
Motivation / Context
Recently the
go-perun
version used inperun-node
was updated tov0.6.0
. In this version the channel closing logic differs significantly forcollaborative
andnon-collaborative
case. Each of the two cases have been handled differently in perun node (seeHandleAdjudicator
function insession/channel.go
for detailed explanation). Hence integration tests should cover both these cases. Currently it covers only collaborative close.Description
To cover both collaborative and non collaborative case in integration tests, in
Test_Integ_Role
,Relates to
Follow up from #161
Testing
The modified tests should cover collaborative and non collaborative close.
Thread Safety
-NA-