integration: use events-consts in tests
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9ea50365d6
commit
5a02ed5e84
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ func TestPause(t *testing.T) {
|
|||
messages, errs := apiClient.Events(ctx, types.EventsOptions{
|
||||
Since: since,
|
||||
Until: until,
|
||||
Filters: filters.NewArgs(filters.Arg("container", cID)),
|
||||
Filters: filters.NewArgs(filters.Arg(events.ContainerEventType, cID)),
|
||||
})
|
||||
assert.Check(t, is.DeepEqual([]string{"pause", "unpause"}, getEventActions(t, messages, errs)))
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ func TestEventsExecDie(t *testing.T) {
|
|||
|
||||
select {
|
||||
case m := <-msg:
|
||||
assert.Equal(t, m.Type, "container")
|
||||
assert.Equal(t, m.Type, events.ContainerEventType)
|
||||
assert.Equal(t, m.Actor.ID, cID)
|
||||
assert.Equal(t, m.Action, "exec_die")
|
||||
assert.Equal(t, m.Actor.Attributes["execID"], id.ID)
|
||||
|
|
Loading…
Add table
Reference in a new issue