Merge pull request #1230 from weaveworks/1154-proxy-coverage

Add coverage to proxy for integration tests.
This commit is contained in:
Tom Wilkie committed 2015-07-29 13:24:21 +01:00
commit 3bffd871b8
6 files changed
+28 -12

No files matched your search

+2 -1
View File
@@ -82,5 +82,6 @@ func main() {
Log.Fatalf("Could not start proxy: %s", err)
}
p.ListenAndServe()
go p.ListenAndServe()
SignalHandlerLoop()
}
+12
View File
@@ -0,0 +1,12 @@
package main
import (
"testing"
weavetest "github.com/weaveworks/weave/testing"
)
func TestMain(t *testing.T) {
weavetest.TrimTestArgs()
main()
}