From 127c658de1b33d8c947dbd7c6c3ad6733c0c56c9 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 6 Oct 2023 14:44:18 +0200 Subject: [PATCH] drop old 6.3 version check --- definitions/checks/disk/performance.rb | 3 +-- test/definitions/checks/disk_performance_test.rb | 9 +++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/definitions/checks/disk/performance.rb b/definitions/checks/disk/performance.rb index 83ed7050d..266c8354c 100644 --- a/definitions/checks/disk/performance.rb +++ b/definitions/checks/disk/performance.rb @@ -30,8 +30,7 @@ def run puts "\n" puts stats.stdout - current_downstream_feature = feature(:instance).downstream - if current_downstream_feature&.at_least_version?('6.3') + if feature(:instance).downstream assert(success, io_obj.slow_disk_error_msg + warning_message, :warn => true) else assert(success, io_obj.slow_disk_error_msg) diff --git a/test/definitions/checks/disk_performance_test.rb b/test/definitions/checks/disk_performance_test.rb index 0d14787e9..6f30b991c 100644 --- a/test/definitions/checks/disk_performance_test.rb +++ b/test/definitions/checks/disk_performance_test.rb @@ -18,9 +18,8 @@ end it 'executes successfully for disk with minimal speed' do - assume_satellite_present do |feature_class| - feature_class.any_instance.stubs(:at_least_version? => true) - end + assume_satellite_present + check_disk_performance.stubs(:check_only_single_device?).returns(true) io_obj = Minitest::Mock.new @@ -38,9 +37,7 @@ end it 'print warning if disk speed does not meet minimal requirement' do - assume_satellite_present do |feature_class| - feature_class.any_instance.stubs(:current_version => version('6.4.0')) - end + assume_satellite_present slow_speed = 59 err_msg = 'Slow disk'