Commit aa666eb4 authored by Simon Pastor's avatar Simon Pastor
Browse files

renamed main to a function because not treated as an app by itself

parent 6823c26f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -245,7 +245,7 @@ func clearSystemTestReadyState() {

func startSystemTest() error {
	if !run {
		go main()
		go systemTest()
		err := createSystemTestReadyState()
		if err != nil {
			run = false
@@ -262,7 +262,7 @@ func stopSystemTest() {
	}
}

func main() {
func systemTest() {

	//create default route handler
	http.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {