We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
testGenerateContent_failure_nonHTTPResponse
1 parent e44bdba commit 6d1f52fCopy full SHA for 6d1f52f
FirebaseVertexAI/Tests/Unit/GenerativeModelTests.swift
@@ -740,6 +740,9 @@ final class GenerativeModelTests: XCTestCase {
740
return
741
}
742
XCTAssertEqual(underlyingError.localizedDescription, "Response was not an HTTP response.")
743
+ let underlyingNSError = underlyingError as NSError
744
+ XCTAssertEqual(underlyingNSError.domain, NSURLErrorDomain)
745
+ XCTAssertEqual(underlyingNSError.code, URLError.Code.badServerResponse.rawValue)
746
747
748
func testGenerateContent_failure_invalidResponse() async throws {
0 commit comments