Skip to content

Commit

Permalink
drop old 6.3 version check
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 6, 2023
1 parent 249ce77 commit 0c12a92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions definitions/checks/disk/performance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 3 additions & 6 deletions test/definitions/checks/disk_performance_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 0c12a92

Please sign in to comment.