Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
fix newline
  • Loading branch information
b-gopalswami committed Jan 24, 2025
1 parent 0824a15 commit 093222d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions integration-tests/smoke/ccip/ccip_update_lane_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestDisableLane(t *testing.T) {
state, err := changeset.LoadOnchainState(e)
require.NoError(t, err)

// Add all lanes
// add all lanes
testhelpers.AddLanesForAll(t, &tenv, state)

var (
Expand All @@ -53,7 +53,6 @@ func TestDisableLane(t *testing.T) {
FeeToken: common.HexToAddress("0x0"),
ExtraArgs: nil,
}))

}

assertSendRequestReverted = func(src, dest uint64, deployer *bind.TransactOpts) {
Expand All @@ -76,13 +75,13 @@ func TestDisableLane(t *testing.T) {
}
)

// Disable lane A -> B
// disable lane A -> B
testhelpers.UpdateLane(t, &tenv, chainA, chainB, false, false)
// send a message to confirm it is reverted between chainA and chainB
assertSendRequestReverted(chainA, chainB, e.Chains[chainA].Users[0])
// send a message between chainB and chainA to confirm it is not reverted
assertRequestSent(chainB, chainA, e.Chains[chainB].Users[0])
// Disable lane B -> A
// disable lane B -> A
testhelpers.UpdateLane(t, &tenv, chainB, chainA, false, false)
assertSendRequestReverted(chainB, chainA, e.Chains[chainB].Users[0])

Expand All @@ -93,23 +92,23 @@ func TestDisableLane(t *testing.T) {
assertRequestSent(chainB, chainC, e.Chains[chainB].Users[1])
assertRequestSent(chainC, chainB, e.Chains[chainC].Users[1])
}()
// Disable lanes between A & C and C & B while requests are getting sent
// disable lanes between A & C and C & B while requests are getting sent
testhelpers.UpdateLane(t, &tenv, chainA, chainC, false, false)
testhelpers.UpdateLane(t, &tenv, chainC, chainA, false, false)
testhelpers.UpdateLane(t, &tenv, chainB, chainC, false, false)
testhelpers.UpdateLane(t, &tenv, chainC, chainB, false, false)
// Confirm that message sent in all lanes are reverted after disabling the lanes
// confirm that message sent in all lanes are reverted after disabling the lanes
for _, pair := range pairs {
assertSendRequestReverted(pair.SourceChainSelector, pair.DestChainSelector, e.Chains[pair.SourceChainSelector].Users[0])
}
// re-enable all the lanes
for _, pair := range pairs {
testhelpers.UpdateLane(t, &tenv, pair.SourceChainSelector, pair.DestChainSelector, false, true)
}
//send a message in all the lane including re-enabled lanes
// send a message in all the lane including re-enabled lanes
for _, pair := range pairs {
assertRequestSent(pair.SourceChainSelector, pair.DestChainSelector, e.Chains[pair.SourceChainSelector].Users[0])
}
//Confirm all messages are delivered
// confirm all messages are delivered
testhelpers.ConfirmExecWithSeqNrsForAll(t, e, state, expectedSeqNumExec, startBlocks)
}

0 comments on commit 093222d

Please sign in to comment.