diff --git a/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart b/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart index 2bbf22f8fbd..414de09b05a 100644 --- a/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart +++ b/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart @@ -38,7 +38,7 @@ Future checkTimeline(VM vm) async { } List events = result['traceEvents']; - expect(events.length, greaterThan(10), reason: "Should have many samples"); + expect(events.length, greaterThan(0), reason: "Should have samples"); for (Map event in events) { expect(event['ph'], equals('P')); expect(event['pid'], isInt); diff --git a/runtime/observatory_2/tests/service_2/get_cpu_profile_timeline_rpc_test.dart b/runtime/observatory_2/tests/service_2/get_cpu_profile_timeline_rpc_test.dart index 40db79e60b3..e5d578b98e8 100644 --- a/runtime/observatory_2/tests/service_2/get_cpu_profile_timeline_rpc_test.dart +++ b/runtime/observatory_2/tests/service_2/get_cpu_profile_timeline_rpc_test.dart @@ -38,7 +38,7 @@ Future checkTimeline(VM vm) async { } List events = result['traceEvents']; - expect(events.length, greaterThan(10), reason: "Should have many samples"); + expect(events.length, greaterThan(0), reason: "Should have samples"); for (Map event in events) { expect(event['ph'], equals('P')); expect(event['pid'], isInt);