From f1049aa55d2cd41b5ddeb3ffafe157d41a0335bc Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 9 Jan 2025 14:34:07 -0500 Subject: [PATCH] Don't check for presence of `ENV['GITHUB_WORKFLOW']` We already check whether `ENV['GITHUB_WORKFLOW']` is equal to `Compilations`, so we don't need to check that it's not nil. --- bootstraptest/test_ractor.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index b126a69128..0f193bfe8e 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -214,10 +214,8 @@ assert_equal '[:a, :b, :c, :d, :e, :f, :g]', %q{ ### ### # Ractor still has several memory corruption so skip huge number of tests -if ENV['GITHUB_WORKFLOW'] && - (ENV['GITHUB_WORKFLOW'] == 'Compilations' || - ENV['GITHUB_WORKFLOW'] == 'ModGC') - # ignore the follow +if ENV['GITHUB_WORKFLOW'] == 'Compilations' || ENV['GITHUB_WORKFLOW'] == 'ModGC' + # ignore the follow else # Ractor.select(*ractors) receives a values from a ractors.