From 18be24f4f9eabdda0362829fafed5e98892dafc6 Mon Sep 17 00:00:00 2001 From: Tanna McClure Date: Thu, 23 Jan 2025 12:08:26 -0600 Subject: [PATCH] make sure client with access token has been created at least once when using connection_client --- test/multiverse/suites/ruby_openai/openai_helpers.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/multiverse/suites/ruby_openai/openai_helpers.rb b/test/multiverse/suites/ruby_openai/openai_helpers.rb index fdcf188c43..2064f25861 100644 --- a/test/multiverse/suites/ruby_openai/openai_helpers.rb +++ b/test/multiverse/suites/ruby_openai/openai_helpers.rb @@ -53,6 +53,7 @@ def client end def connection_client + client # can cause failure if this has never been created before on older versions for the test that uses connection_client Gem::Version.new(::OpenAI::VERSION) <= Gem::Version.new('4.3.2') ? OpenAI::Client : client end