From fb7dcac662ea60113160f5a032c4aac9f77e7461 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Tue, 26 Apr 2016 19:00:21 +0800 Subject: [PATCH] Fix integration test for events Signed-off-by: Qiang Huang --- tests/integration/events.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/events.bats b/tests/integration/events.bats index 9254e884..aafd3e07 100644 --- a/tests/integration/events.bats +++ b/tests/integration/events.bats @@ -27,7 +27,7 @@ function startup_events() { run "$RUNC" events --stats test_busybox [ "$status" -eq 0 ] [[ "${lines[0]}" == [\{]"\"type\""[:]"\"stats\""[,]"\"id\""[:]"\"test_busybox\""[,]* ]] - [[ "${lines[0]}" == *"CgroupStats"* ]] + [[ "${lines[0]}" == *"data"* ]] } @test "events --interval default " { @@ -54,7 +54,7 @@ function startup_events() { run cat events.log [ "$status" -eq 0 ] [[ "${lines[0]}" == [\{]"\"type\""[:]"\"stats\""[,]"\"id\""[:]"\"test_busybox\""[,]* ]] - [[ "${lines[0]}" == *"CgroupStats"* ]] + [[ "${lines[0]}" == *"data"* ]] } @test "events --interval 1s " {