only do ntgvision searches 9-4 EST because 417s mean unauth until forced pw reset

This commit is contained in:
Bel LaPointe
2022-01-27 19:53:50 -07:00
parent 0120fdd0e2
commit e42df54632
2 changed files with 40 additions and 1 deletions

16
broker/ntgvision_test.go Normal file
View File

@@ -0,0 +1,16 @@
package broker
import (
"testing"
"time"
)
func TestWorkingHoursNTG(t *testing.T) {
ntg := NTGVision{}
if !ntg.workingHours(time.Date(2022, 1, 27, 12, 0, 0, 0, time.Local)) {
t.Fatal("noon MST not ok")
}
if ntg.workingHours(time.Date(2022, 1, 27, 23, 0, 0, 0, time.Local)) {
t.Fatal("midnight MST ok")
}
}