Convert monitor to http server

This commit is contained in:
Bel LaPointe
2018-10-08 19:34:34 -06:00
parent 1c3ff9a8d2
commit 4946e53b57
4 changed files with 176 additions and 28 deletions

View File

@@ -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)
}