lotus/lotus-soup/paych
Anton Evangelatov f702ce331a
enable paych tests (#255)
* enable paych tests

* use new APIs and values
2020-09-16 17:29:37 +02:00
..
README.md WIP payments channels stress test (blocked). 2020-07-07 14:08:51 +01:00
stress.go enable paych tests (#255) 2020-09-16 17:29:37 +02:00

Payment channels end-to-end tests

This package contains the following test cases, each of which is described further below.

  • Payment channels stress test case (stress.go).

Payment channels stress test case (stress.go)

WIP | blocked due to https://github.com/filecoin-project/lotus/issues/2297

This test case turns all clients into payment receivers and senders. The first member to start in the group becomes the receiver. All other members become senders.

The senders will open a single payment channel to the receiver, and will wait for the message to be posted on-chain. We are setting build.MessageConfidence=1, in order to accelerate the test. So we'll only wait for a single tipset confirmation once we witness the message.

Once the message is posted, we load the payment channel actor address and create as many lanes as the lane_count test parameter dictates.

When then fetch our total balance, and start sending it on the payment channel, round-robinning across all lanes, until our balance is extinguished.

TODO:

  • Assertions, metrics, etc. Actually gather statistics. Right now this is just a smoke test, and it fails.
  • Implement the receiver logic.
  • Model test lifetime by signalling end.