Add coverage to proxy for integration tests.
This commit is contained in:
1 parent
77358140d9
commit
6fe69590c4
6 files changed
+28
-12
No files matched your search
@@ -82,5 +82,6 @@ func main() {
|
||||
Log.Fatalf("Could not start proxy: %s", err)
|
||||
}
|
||||
|
||||
p.ListenAndServe()
|
||||
go p.ListenAndServe()
|
||||
SignalHandlerLoop()
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
weavetest "github.com/weaveworks/weave/testing"
|
||||
)
|
||||
|
||||
func TestMain(t *testing.T) {
|
||||
weavetest.TrimTestArgs()
|
||||
main()
|
||||
}
|
||||
Reference in new issue
Block a user