Reenable go test

This commit is contained in:
rhy-jot
2013-12-03 09:51:47 -08:00
parent 6718094237
commit f64e27f32e
4 changed files with 0 additions and 0 deletions

1
tests/apps/go/.godir Normal file
View File

@@ -0,0 +1 @@
web

1
tests/apps/go/Procfile Normal file
View File

@@ -0,0 +1 @@
web: web

2
tests/apps/go/check_deploy Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
set -e; test "$(curl -s $1)" == "go"

20
tests/apps/go/web.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"fmt"
"net/http"
"os"
)
func main() {
http.HandleFunc("/", hello)
fmt.Println("listening...")
err := http.ListenAndServe(":"+os.Getenv("PORT"), nil)
if err != nil {
panic(err)
}
}
func hello(res http.ResponseWriter, req *http.Request) {
fmt.Fprintln(res, "go")
}