Skip to content

Commit

Permalink
chore: Improve two integration tests (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins authored Mar 8, 2024
1 parent bf78c07 commit 0fda832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CloudFrontKeyValueStoreSigV4ATests: XCTestCase {
var status: String? = wipStatus
repeat {
status = try await client.describeKeyValueStore(input: DescribeKeyValueStoreInput(name: kvsName)).keyValueStore?.status
let seconds = 20.0
let seconds = 2.5
try await Task.sleep(nanoseconds: UInt64(seconds * Double(NSEC_PER_SEC)))
} while status == wipStatus

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,7 @@ import AWSMediaConvert
class AWSMediaConvertTests: XCTestCase {

func test_getJobTemplate_handlesSpecialCharacters() async throws {
let region = "us-west-2"

// MediaConvert requires that you use a provided endpoint for all requests.
// Retrieve the endpoint for all subsequent requests.
let client0 = try MediaConvertClient(region: region)
let input0 = DescribeEndpointsInput()
let output0 = try await client0.describeEndpoints(input: input0)
guard let endpoint = output0.endpoints?.first?.url else {
XCTFail("Unable to retrieve endpoint")
return
}

// Create a client, configured to use the endpoint you just retrieved.
let config = try await MediaConvertClient.MediaConvertClientConfiguration(region: region, signingRegion: region, endpoint: endpoint)
let client = MediaConvertClient(config: config)

let client = try MediaConvertClient(region: "us-west-2")
let name = "Android TV Template"

// These job template settings are filled in just enough to form a valid job template for creation.
Expand Down

0 comments on commit 0fda832

Please sign in to comment.