Add test arg

monorepo
Varun Patil 2022-11-10 21:03:55 -08:00
parent f9f43ebb42
commit 00b9e98f17
1 changed files with 6 additions and 0 deletions

View File

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