diff --git a/main.go b/main.go index 11683be8..0fa56521 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "net/http" "os" @@ -120,6 +121,11 @@ func (h *Handler) Close() { } func main() { + if len(os.Args) >= 2 && os.Args[1] == "test" { + fmt.Println("test successful") + return + } + log.Println("Starting VOD server") h := NewHandler(&Config{