mirror of
https://github.com/googleforgames/open-match.git
synced 2025-03-24 20:35:47 +00:00
Fix Scale tests (#828)
This commit is contained in:
examples/scale
install/helm/open-match/charts
@ -31,7 +31,7 @@ func greedyProfiles(cfg config.View) []*pb.MatchProfile {
|
||||
Name: "all",
|
||||
FloatRangeFilters: []*pb.FloatRangeFilter{
|
||||
{
|
||||
Attribute: "mmr.rating",
|
||||
Attribute: "attribute.mmr",
|
||||
Min: float64(cfg.GetInt("testConfig.minRating")),
|
||||
Max: float64(cfg.GetInt("testConfig.maxRating")),
|
||||
},
|
||||
|
@ -53,7 +53,7 @@ func multifilterProfiles(cfg config.View) []*pb.MatchProfile {
|
||||
Name: poolName,
|
||||
FloatRangeFilters: []*pb.FloatRangeFilter{
|
||||
{
|
||||
Attribute: "mmr.rating",
|
||||
Attribute: "attribute.mmr",
|
||||
Min: float64(rating.min),
|
||||
Max: float64(rating.max),
|
||||
},
|
||||
|
@ -62,7 +62,7 @@ func multipoolProfiles(cfg config.View) []*pb.MatchProfile {
|
||||
Max: math.MaxFloat64,
|
||||
},
|
||||
{
|
||||
Attribute: "mmr.rating",
|
||||
Attribute: "attribute.mmr",
|
||||
Min: float64(rating.min),
|
||||
Max: float64(rating.max),
|
||||
},
|
||||
|
@ -41,7 +41,7 @@ func Ticket(cfg config.View) *pb.Ticket {
|
||||
latencyMap := latency(regions)
|
||||
ticket := &pb.Ticket{
|
||||
Properties: structs.Struct{
|
||||
"mmr.rating": structs.Number(normalDist(40, min, max, 20)),
|
||||
"attribute.mmr": structs.Number(normalDist(40, min, max, 20)),
|
||||
// TODO: Use string attribute value for the character attribute.
|
||||
characters[rand.Intn(len(characters))]: structs.Number(float64(time.Now().Unix())),
|
||||
}.S(),
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user