Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automation test #13213

Merged
merged 7 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading