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 May 15, 2024
1 parent 286e6af commit 1b1e31e
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 @@ -1262,9 +1262,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", "5s").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 1b1e31e

Please sign in to comment.