Convert monitor to http server
This commit is contained in:
@@ -53,7 +53,7 @@ func Test_ItemCompare(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, c := range cases {
|
||||
comparison := (&Item{next: c.nexts[0], interval: c.inter[0]}).Compare(&Item{next: c.nexts[1], interval: c.inter[1]})
|
||||
comparison := (&Item{next: c.nexts[0], Interval: Duration{c.inter[0]}}).Compare(&Item{next: c.nexts[1], Interval: Duration{c.inter[1]}})
|
||||
if comparison != c.result {
|
||||
t.Errorf("failed to compare %v: got %v, expected %v", c.nexts, comparison, c.result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user