Skip to content

Commit ccebdbe

Browse files
committed
chore: update xcodebuild test flags
1 parent 3933591 commit ccebdbe

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

.github/workflows/nightly_repeated_unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
scheme: ${{ matrix.scheme }}
3838
timeout-minutes: 120
3939
generate_coverage_report: false
40-
test_iterations_flags: -test-iterations 10 -run-tests-until-failure
40+
test_iterations_flags: -enumerate-tests -test-iterations 3 -run-tests-until-failure -parallel-testing-enabled NO -verbose

AmplifyPlugins/API/Tests/AWSAPIPluginTests/AppSyncRealTimeClient/AppSyncRealTimeClientTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AppSyncRealTimeClientTests: XCTestCase {
5959
}
6060
Task {
6161
try await Task.sleep(nanoseconds: 80 * 1000)
62-
await appSyncClient.subject.send(.success(.init(id: nil, payload: nil, type: .connectionAck)))
62+
appSyncClient.subject.send(.success(.init(id: nil, payload: nil, type: .connectionAck)))
6363
}
6464
await fulfillment(of: [finishExpectation], timeout: timeout + 1)
6565
}
@@ -91,7 +91,7 @@ class AppSyncRealTimeClientTests: XCTestCase {
9191
}
9292
Task {
9393
try await Task.sleep(nanoseconds: 80 * 1000)
94-
await appSyncClient.subject.send(.success(.init(
94+
appSyncClient.subject.send(.success(.init(
9595
id: id,
9696
payload: .object([
9797
"errors": .array([
@@ -134,7 +134,7 @@ class AppSyncRealTimeClientTests: XCTestCase {
134134

135135
Task {
136136
try await Task.sleep(nanoseconds: 80 * 1000)
137-
await appSyncClient.subject.send(.success(.init(
137+
appSyncClient.subject.send(.success(.init(
138138
id: id,
139139
payload: .object([
140140
"errors": .array([
@@ -181,7 +181,7 @@ class AppSyncRealTimeClientTests: XCTestCase {
181181

182182
Task {
183183
try await Task.sleep(nanoseconds: 80 * 1000)
184-
await appSyncClient.subject.send(.success(.init(
184+
appSyncClient.subject.send(.success(.init(
185185
id: id,
186186
payload: .object([
187187
"errors": .array([

AmplifyPlugins/Internal/Tests/InternalAWSPinpointUnitTests/EndpointInformationProviderTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class EndpointInformationProviderTests: XCTestCase {
4646
#elseif os(watchOS)
4747
XCTAssertEqual(platformName, "watchOS")
4848
XCTAssertEqual(model, "Apple Watch")
49+
#elseif os(visionOS)
50+
XCTAssertEqual(platformName, "visionOS")
51+
XCTAssertEqual(model, "Apple Vision Pro")
4952
#endif
5053
}
5154
}

AmplifyPlugins/Predictions/Tests/CoreMLPredictionsPluginUnitTests/DependencyTests/CoreMLNaturalLanguageAdapterTests.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ class CoreMLNaturalLanguageAdapterTests: XCTestCase {
5353
/// - I should get back correct tokens
5454
///
5555
func testSyntaxToken() {
56-
#if !os(visionOS)
57-
// TODO: Test failing on visionOS.
58-
// XCTAssertEqual failed: ("PartOfSpeech(description: "other")")
59-
// is not equal to ("PartOfSpeech(description: "determiner")") -
60-
// First word in the input should be determiner
6156
let text = "The ripe taste of cheese improves with age."
6257
let result = coreMLNaturalLanguageAdapter.getSyntaxTokens(for: text)
6358
XCTAssertNotNil(result, "Result should not be nil")
@@ -68,7 +63,6 @@ class CoreMLNaturalLanguageAdapterTests: XCTestCase {
6863
.determiner,
6964
"First word in the input should be determiner"
7065
)
71-
#endif
7266
}
7367

7468
/// Test syntax token with invalid text
@@ -96,12 +90,10 @@ class CoreMLNaturalLanguageAdapterTests: XCTestCase {
9690
///
9791
#if !os(watchOS)
9892
func testEntityToken() {
99-
#if !os(visionOS) // TODO: Test failing on visionOS.
10093
let text = "The American Red Cross was established in Washington, D.C., by Clara Barton."
10194
let result = coreMLNaturalLanguageAdapter.getEntities(for: text)
10295
XCTAssertNotNil(result, "Result should not be nil")
10396
XCTAssertFalse(result.isEmpty, "Should return some value back")
104-
#endif
10597
}
10698
#endif
10799

0 commit comments

Comments
 (0)