Update grpc timeout and logger

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2018-05-29 14:59:30 -07:00
parent d2fc059229
commit 55afe3359a
5 changed files with 8 additions and 15 deletions

View File

@@ -21,15 +21,11 @@ import (
"context"
"flag"
"fmt"
"io/ioutil"
golog "log"
"os"
"os/exec"
"testing"
"time"
"google.golang.org/grpc/grpclog"
"github.com/containerd/containerd/images"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/namespaces"
@@ -50,9 +46,6 @@ var (
)
func init() {
// Discard grpc logs so that they don't mess with our stdio
grpclog.SetLogger(golog.New(ioutil.Discard, "", golog.LstdFlags))
flag.StringVar(&address, "address", defaultAddress, "The address to the containerd socket for use in the tests")
flag.BoolVar(&noDaemon, "no-daemon", false, "Do not start a dedicated daemon for the tests")
flag.BoolVar(&noCriu, "no-criu", false, "Do not run the checkpoint tests")