Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
expression: improve assertion to fix flaky test
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Oct 29, 2025
commit 13994ccd4ae2d07232873689925231a394717041
2 changes: 1 addition & 1 deletion pkg/expression/scalar_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (sf *ScalarFunction) Equal(ctx EvalContext, e Expression) bool {
copyhashcode := reHashCodeForTest(sf)
copyfunhashcode := reHashCodeForTest(fun)
intest.Assert(bytes.Equal(sf.hashcode, fun.hashcode) == bytes.Equal(copyfunhashcode, copyhashcode),
" HashCode should be stable and consistent")
"HashCode should be stable and consistent")
}
return bytes.Equal(sf.hashcode, fun.hashcode)
}
Expand Down