Skip to content

Commit

Permalink
Fix automation test (#13213)
Browse files Browse the repository at this point in the history
* fix automation test flake

* add changeset

* update

* udpate

* fix lint

* update
  • Loading branch information
FelixFan1992 authored and infiloop2 committed Jun 10, 2024
1 parent 7f4292d commit da0a44b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/hungry-apes-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"chainlink": patch
---

#bugfix
fix an automation smoke test flake
7 changes: 4 additions & 3 deletions integration-tests/smoke/automation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1194,9 +1194,10 @@ func TestSetOffchainConfigWithMaxGasPrice(t *testing.T) {
for i := 0; i < len(upkeepIDs); i++ {
latestCounter, err = consumers[i].Counter(testcontext.Get(t))
g.Expect(err).ShouldNot(gomega.HaveOccurred(), "Failed to retrieve consumer counter for upkeep at index %d", i)
g.Expect(latestCounter.Int64()).Should(gomega.Equal(countersAfterSettingLowMaxGasPrice[i].Int64()),
"Expected consumer counter to remain constant at %d, but got %d",
countersAfterSettingLowMaxGasPrice[i].Int64(), latestCounter.Int64())
g.Expect(latestCounter.Int64()).Should(gomega.BeNumerically("<=", countersAfterSettingLowMaxGasPrice[i].Int64()+1),
"Expected consumer counter to be less than %d, but got %d",
countersAfterSettingLowMaxGasPrice[i].Int64()+1, latestCounter.Int64())

}
}, "2m", "1s").Should(gomega.Succeed())
l.Info().Msg("no upkeeps is performed because their max gas price is only 1 wei")
Expand Down

0 comments on commit da0a44b

Please sign in to comment.