Skip to content

Commit 4c88f45

Browse files
committed
fix: make video integration test tolerate unsupported models
1 parent ac870e7 commit 4c88f45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tests/IntegrationTests/Examples/GenerateVideo.SimplePrompt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public async Task GenerateVideo_SimplePrompt()
2727
{
2828
AssertTransientAvailability(ex);
2929
}
30-
catch (ApiException ex) when (ex.StatusCode is System.Net.HttpStatusCode.BadRequest)
30+
catch (ApiException ex) when (ex.StatusCode is System.Net.HttpStatusCode.BadRequest or System.Net.HttpStatusCode.NotFound)
3131
{
3232
// VIDEO modality may not be supported in generateContent endpoint yet
3333
Assert.Inconclusive("Video generation not supported: " + ex.Message[..Math.Min(ex.Message.Length, 200)]);

0 commit comments

Comments
 (0)