Browse Source

Chore(booking-page): More sleep allowance for booking slot page load

master
Samuel Pua 3 years ago
parent
commit
bece8b7cca
  1. 2
      backend/internal/ktmtrainbot/backgroundbookingjob.go

2
backend/internal/ktmtrainbot/backgroundbookingjob.go

@ -413,7 +413,7 @@ func getBookingSlots(browser *rod.Browser, onwardDate string, reverse bool) *rod
}
func selectBookingSlot(ctx context.Context, page *rod.Page, timeCode string) *rod.Page {
time.Sleep(1 * time.Second)
time.Sleep(5 * time.Second)
// Initial closing of maintenance modal
bodyText := page.MustElement("body").MustText()
if strings.Contains(bodyText, "System maintenance scheduled at 23:00 to 00:15 (UTC+8)") {

Loading…
Cancel
Save