Skip to content

Commit

Permalink
add delay between legs
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
  • Loading branch information
adecaro authored and alexandrosfilios committed Sep 16, 2024
1 parent c3c4141 commit 068d25d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration/token/interop/views/htlc/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ func (v *FastExchangeResponderView) Call(context view.Context) (interface{}, err
})
assert.NoError(err, "failed completing responder's leg (as initiator)")

time.Sleep(30 * time.Second)

// Claim initiator's script
_, err = view2.AsInitiatorCall(context, v, func(context view.Context) (interface{}, error) {
// Scan for the pre-image, this will be the signal that the initiator has claimed responder's script
Expand Down

0 comments on commit 068d25d

Please sign in to comment.