Merge pull request #281 from mlaventure/use-protobuf-timestamp

Use protobuf timestamp
This commit is contained in:
Kenfe-Mickaël Laventure 2016-07-05 13:37:41 -07:00 committed by GitHub
commit 6dd2f1c422
17 changed files with 1212 additions and 175 deletions

View file

@ -21,6 +21,7 @@ import (
"github.com/docker/containerd/api/grpc/types"
utils "github.com/docker/containerd/testutils"
"github.com/go-check/check"
"github.com/golang/protobuf/ptypes/timestamp"
)
func Test(t *testing.T) {
@ -28,7 +29,7 @@ func Test(t *testing.T) {
}
func init() {
check.Suite(&ContainerdSuite{lastEventTs: uint64(time.Now().Unix())})
check.Suite(&ContainerdSuite{})
}
type ContainerdSuite struct {
@ -42,7 +43,7 @@ type ContainerdSuite struct {
grpcClient types.APIClient
eventFiltersMutex sync.Mutex
eventFilters map[string]func(event *types.Event)
lastEventTs uint64
lastEventTs *timestamp.Timestamp
}
// getClient returns a connection to the Suite containerd