Skip to content

Commit

Permalink
fix: Lower group by hit rate to make case stable
Browse files Browse the repository at this point in the history
`TestSearchGroupByFloatDefault` may fail randomly since hitrate maybe
lower than 0.2, which is reasonable due to index variable.

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Mar 20, 2024
1 parent 8b5ef11 commit fbffab9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestSearchGroupByFloatDefault(t *testing.T) {
_str := fmt.Sprintf("GroupBy search with field %s, nq=%d and limit=%d , then hitsNum= %d, hitsRate=%v\n",
groupByField, common.DefaultNq, common.DefaultTopK, hitsNum, hitsRate)
log.Println(_str)
require.GreaterOrEqualf(t, hitsRate, float32(0.2), _str)
require.GreaterOrEqualf(t, hitsRate, float32(0.1), _str)
}
}
}
Expand Down

0 comments on commit fbffab9

Please sign in to comment.