Fix Scale tests ()

This commit is contained in:
yfei1
2019-09-23 16:20:53 -07:00
committed by GitHub
parent b29dfae9cf
commit 291e60a735
9 changed files with 4 additions and 4 deletions

@ -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(),