Skip to content

Commit f7f7fae

Browse files
committed
refactor: remove noisy require.Len()
1 parent 3383cb8 commit f7f7fae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libevm/tooling/release/release_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ func testReleaseBranch(t *testing.T, targetBranch string) {
202202
_, cherryPick := parseCherryPicks(t)
203203
wantCommits := commitsFromHashes(t, repo, cherryPick, fork)
204204
logCommits(t, "Expected cherry-picks", wantCommits)
205-
require.Len(t, newCommits, len(wantCommits)+1, "Commits since fork from default branch MUST be number cherry-picked plus one")
205+
if got, want := len(newCommits), len(wantCommits)+1; got != want {
206+
t.Fatalf("Got %d commits since fork from default; want number to be cherry-picked plus one (%d)", got, want)
207+
}
206208

207209
opt := compareCherryPickedCommits()
208210
if diff := cmp.Diff(wantCommits, newCommits[:len(wantCommits)], opt); diff != "" {

0 commit comments

Comments
 (0)