1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Pass right timestamp instead of crap from string(int64)

Problem is that --since can consume anything not near looking as
timestamp.

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
Alexandr Morozov 2015-04-06 13:39:02 -07:00
parent 37a16580b1
commit 5fa3a6f248

View file

@ -425,7 +425,7 @@ func TestEventsStreaming(t *testing.T) {
eventDestroy := make(chan struct{})
go func() {
eventsCmd := exec.Command(dockerBinary, "events", "--since", string(start))
eventsCmd := exec.Command(dockerBinary, "events", "--since", strconv.FormatInt(start, 10))
stdout, err := eventsCmd.StdoutPipe()
if err != nil {
t.Fatal(err)