Browse Source

Merge pull request #6485 from roidelapluie/fullstop

manager: add full stops on comments
pull/6488/head
Ganesh Vernekar 5 years ago committed by GitHub
parent
commit
34e0376ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rules/manager.go
  2. 4
      rules/manager_test.go

2
rules/manager.go

@ -743,7 +743,7 @@ func (g *Group) RestoreForState(ts time.Time) {
}
// Equals return if two groups are the same
// Equals return if two groups are the same.
func (g *Group) Equals(ng *Group) bool {
if g.name != ng.name {
return false

4
rules/manager_test.go

@ -742,7 +742,7 @@ func TestUpdate(t *testing.T) {
ogs[h] = g
}
// Update interval and reload
// Update interval and reload.
for i, g := range rgs.Groups {
if g.Interval != 0 {
rgs.Groups[i].Interval = g.Interval * 2
@ -753,7 +753,7 @@ func TestUpdate(t *testing.T) {
}
reloadAndValidate(rgs, t, tmpFile, ruleManager, expected, ogs)
// Change group rules and reload
// Change group rules and reload.
for i, g := range rgs.Groups {
for j, r := range g.Rules {
rgs.Groups[i].Rules[j].Expr = fmt.Sprintf("%s * 0", r.Expr)

Loading…
Cancel
Save