From fb14cfcc266f17a0b72dfebd5742c78e53e38b99 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Thu, 26 Nov 2020 19:05:52 -0500 Subject: [PATCH] RUBY-2452 OS name is linux on ruby-head (3.0) --- spec/mongo/server/app_metadata_shared.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/mongo/server/app_metadata_shared.rb b/spec/mongo/server/app_metadata_shared.rb index 3e799d04e7..c19898ab03 100644 --- a/spec/mongo/server/app_metadata_shared.rb +++ b/spec/mongo/server/app_metadata_shared.rb @@ -10,7 +10,7 @@ it 'includes operating system information' do document[:client][:os][:type].should == 'linux' - if BSON::Environment.jruby? + if BSON::Environment.jruby? || RUBY_VERSION >= '3.0' document[:client][:os][:name].should == 'linux' else document[:client][:os][:name].should == 'linux-gnu'