Commit 434ec7b6 authored by Abiola Ibrahim's avatar Abiola Ibrahim

Merge remote-tracking branch 'upstream/master'

parents 25847a61 b2549c31
language: go
script: go test ./...
\ No newline at end of file
......@@ -10,7 +10,7 @@ import (
// newTestController creates a new *Controller for
// the input specified, with a filename of "Testfile"
func newTestController(input string) *Controller {
return Controller{
return &Controller{
Config: &server.Config{},
Dispenser: parse.NewDispenser("Testfile", strings.NewReader(input)),
}
......
......@@ -20,14 +20,14 @@ import (
)
var (
conf string
http2 bool // TODO: temporary flag until http2 is standard
quiet bool
cpu string
conf string
http2 bool // TODO: temporary flag until http2 is standard
quiet bool
cpu string
)
func init() {
flag.StringVar(&conf, "conf", "", "Configuration file to use")
flag.StringVar(&conf, "conf", "", "Configuration file to use (default="+config.DefaultConfigFile+")")
flag.BoolVar(&http2, "http2", true, "Enable HTTP/2 support") // TODO: temporary flag until http2 merged into std lib
flag.BoolVar(&quiet, "quiet", false, "Quiet mode (no initialization output)")
flag.StringVar(&cpu, "cpu", "100%", "CPU cap")
......
// NOTE: These tests were adapted from the original
// repository from which this package was forked.
// The tests are slow (~10s) and in dire need of rewriting.
// As such, the tests have been disabled to speed up
// automated builds until they can be properly written.
package fastcgi
import (
......@@ -185,7 +191,7 @@ func generateRandFile(size int) (p string, m string) {
return
}
func Test(t *testing.T) {
func Disabled_Test(t *testing.T) {
// TODO: test chunked reader
t_ = t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment