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
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{