From 00c3b5f6f37bc8c7b113fcd5d4a6b0b29fd42c8d Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 8 Aug 2022 13:51:02 +0200 Subject: [PATCH] fix: adapting tests for defining ActorSystemImplementation --- ...hwpc_report_with_mperf_to_zero_must_not_crash_the_system.py | 2 ++ tests/acceptation/test_normal_behaviour.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/acceptation/test_hwpc_report_with_mperf_to_zero_must_not_crash_the_system.py b/tests/acceptation/test_hwpc_report_with_mperf_to_zero_must_not_crash_the_system.py index b0e90cb..2630bfc 100644 --- a/tests/acceptation/test_hwpc_report_with_mperf_to_zero_must_not_crash_the_system.py +++ b/tests/acceptation/test_hwpc_report_with_mperf_to_zero_must_not_crash_the_system.py @@ -41,6 +41,7 @@ import pytest import pymongo +from powerapi.supervisor import SIMPLE_SYSTEM_IMP from smartwatts.__main__ import run_smartwatts from smartwatts.test_utils.reports import smartwatts_timeline_with_mperf_0, smartwatts_timeline @@ -70,6 +71,7 @@ def check_db(): def test_normal_behaviour(mongo_database, shutdown_system): config = {'verbose': 0, 'stream': False, + 'actor_system': SIMPLE_SYSTEM_IMP, 'input': {'puller_mongodb': {'type': 'mongodb', 'model': 'HWPCReport', 'uri': MONGO_URI, diff --git a/tests/acceptation/test_normal_behaviour.py b/tests/acceptation/test_normal_behaviour.py index 8067247..d3ea6a4 100644 --- a/tests/acceptation/test_normal_behaviour.py +++ b/tests/acceptation/test_normal_behaviour.py @@ -42,6 +42,7 @@ import pytest import pymongo +from powerapi.supervisor import SIMPLE_SYSTEM_IMP from smartwatts.__main__ import run_smartwatts from smartwatts.test_utils.reports import smartwatts_timeline @@ -88,6 +89,7 @@ def mongodb_content(smartwatts_timeline): def test_normal_behaviour(mongo_database, shutdown_system): config = {'verbose': True, 'stream': False, + 'actor_system': SIMPLE_SYSTEM_IMP, 'input': {'puller_mongodb': {'type': 'mongodb', 'model': 'HWPCReport', 'uri': MONGO_URI, @@ -124,6 +126,7 @@ def test_normal_behaviour(mongo_database, shutdown_system): def test_normal_behaviour_real_time(mongo_database, shutdown_system): config = {'verbose': True, 'stream': False, + 'actor_system': SIMPLE_SYSTEM_IMP, 'input': {'puller_mongodb': {'type': 'mongodb', 'model': 'HWPCReport', 'uri': MONGO_URI,