From 79500e5e3cff884433d734fa469cf6a66be0d2b5 Mon Sep 17 00:00:00 2001 From: "Glenn R. Fisher" Date: Fri, 30 Sep 2016 14:35:19 -0500 Subject: [PATCH] Update TextToSpeechTests With status code validation in place, a different error message and code is now produced for these negative tests. --- Source/TextToSpeechV1/Tests/TextToSpeechTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/TextToSpeechV1/Tests/TextToSpeechTests.swift b/Source/TextToSpeechV1/Tests/TextToSpeechTests.swift index be8f76aa3..48fdf4bdc 100644 --- a/Source/TextToSpeechV1/Tests/TextToSpeechTests.swift +++ b/Source/TextToSpeechV1/Tests/TextToSpeechTests.swift @@ -728,7 +728,7 @@ class TextToSpeechTests: XCTestCase { let expectation = expectationWithDescription(description) let failure = { (error: NSError) in - XCTAssertEqual(error.code, 400) + XCTAssertEqual(error.code, -6003) expectation.fulfill() } @@ -743,7 +743,7 @@ class TextToSpeechTests: XCTestCase { let voice = SynthesisVoice.Custom(voice: "invalid-voice") let failure = { (error: NSError) in - XCTAssertEqual(error.code, 404) + XCTAssertEqual(error.code, -6003) expectation.fulfill() }