lotus/testplans/lotus-soup/paych
2021-01-26 10:53:27 +00:00
..
README.md merge filecoin-project/oni subtree in testplans/ 2020-11-06 21:02:06 +01:00
stress.go fix stale imports in testplans/lotus-soup. 2021-01-26 10:53:27 +00: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.