Skip to content

Commit 88f054b

Browse files
committed
remove disabled timeout tests
1 parent 5851aca commit 88f054b

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

tests/tazureChat.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ function createOpenAIChatWithStreamFunc(testCase)
7777
testCase.verifyGreaterThan(numel(sf("")), 1);
7878
end
7979

80-
%% Test is currently unreliable, reasons unclear
81-
% function verySmallTimeOutErrors(testCase)
82-
% chat = azureChat(getenv("AZURE_OPENAI_ENDPOINT"), getenv("AZURE_OPENAI_DEPLOYMENT"), TimeOut=1e-10, ApiKey="false-key");
83-
% testCase.verifyError(@()generate(chat, "hi"), "MATLAB:webservices:Timeout")
84-
% end
85-
8680
function errorsWhenPassingToolChoiceWithEmptyTools(testCase)
8781
chat = azureChat(getenv("AZURE_OPENAI_ENDPOINT"), getenv("AZURE_OPENAI_DEPLOYMENT"), ApiKey="this-is-not-a-real-key");
8882
testCase.verifyError(@()generate(chat,"input", ToolChoice="bla"), "llms:mustSetFunctionsForCall");

tests/textractOpenAIEmbeddings.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ function useAllNVP(testCase)
5757
ApiKey="this-is-not-a-real-key", TimeOut=10));
5858
end
5959

60-
%% Test is currently unreliable, reasons unclear
61-
% function verySmallTimeOutErrors(testCase)
62-
% testCase.verifyError(@()extractOpenAIEmbeddings("bla", TimeOut=0.0001, ApiKey="false-key"), "MATLAB:webservices:Timeout")
63-
% end
64-
6560
function testInvalidInputs(testCase, InvalidInput)
6661
testCase.verifyError(@()extractOpenAIEmbeddings(InvalidInput.Input{:}), InvalidInput.Error);
6762
end

tests/topenAIChat.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ function validConstructorCalls(testCase,ValidConstructorInput)
8181
end
8282
end
8383

84-
%% Test is currently unreliable, reasons unclear
85-
% function verySmallTimeOutErrors(testCase)
86-
% chat = openAIChat(TimeOut=0.0001, ApiKey="false-key");
87-
% testCase.verifyError(@()generate(chat, "hi"), "MATLAB:webservices:Timeout")
88-
% end
89-
9084
function errorsWhenPassingToolChoiceWithEmptyTools(testCase)
9185
chat = openAIChat(ApiKey="this-is-not-a-real-key");
9286

0 commit comments

Comments
 (0)