Skip to content

Commit 239d6d2

Browse files
authored
Add end-to-end tests for async/await (#528)
* add end to end tets * enable testCanceling on linux * Remove testConnectTimeout test
1 parent b1c0c3c commit 239d6d2

File tree

3 files changed

+440
-0
lines changed

3 files changed

+440
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the AsyncHTTPClient open source project
4+
//
5+
// Copyright (c) 2018-2019 Apple Inc. and the AsyncHTTPClient project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
//
15+
// AsyncAwaitEndToEndTests+XCTest.swift
16+
//
17+
import XCTest
18+
19+
///
20+
/// NOTE: This file was generated by generate_linux_tests.rb
21+
///
22+
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
23+
///
24+
25+
extension AsyncAwaitEndToEndTests {
26+
static var allTests: [(String, (AsyncAwaitEndToEndTests) -> () throws -> Void)] {
27+
return [
28+
("testSimpleGet", testSimpleGet),
29+
("testSimplePost", testSimplePost),
30+
("testPostWithByteBuffer", testPostWithByteBuffer),
31+
("testPostWithSequenceOfUInt8", testPostWithSequenceOfUInt8),
32+
("testPostWithCollectionOfUInt8", testPostWithCollectionOfUInt8),
33+
("testPostWithRandomAccessCollectionOfUInt8", testPostWithRandomAccessCollectionOfUInt8),
34+
("testPostWithAsyncSequenceOfByteBuffers", testPostWithAsyncSequenceOfByteBuffers),
35+
("testPostWithAsyncSequenceOfUInt8", testPostWithAsyncSequenceOfUInt8),
36+
("testPostWithFragmentedAsyncSequenceOfByteBuffers", testPostWithFragmentedAsyncSequenceOfByteBuffers),
37+
("testPostWithFragmentedAsyncSequenceOfLargeByteBuffers", testPostWithFragmentedAsyncSequenceOfLargeByteBuffers),
38+
("testCanceling", testCanceling),
39+
("testDeadline", testDeadline),
40+
("testInvalidURL", testInvalidURL),
41+
]
42+
}
43+
}

0 commit comments

Comments
 (0)