Skip to content

Commit f348973

Browse files
authored
chore: fix nightly tests (#3989)
* chore: reduce nightly unit test iteration count * fix repeated tests
1 parent ba8bf71 commit f348973

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

AmplifyPlugins/Analytics/Tests/AWSPinpointAnalyticsPluginUnitTests/Configuration/AWSPinpointAnalyticsPluginConfigurationTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0
66
//
77

8-
import Amplify
8+
@testable import Amplify
99
import XCTest
1010
@_spi(InternalAWSPinpoint) @testable import InternalAWSPinpoint
1111
@testable import AWSPinpointAnalyticsPlugin
@@ -339,7 +339,7 @@ class AWSPinpointAnalyticsPluginConfigurationTests: XCTestCase {
339339
}
340340
}
341341

342-
func testThrowsOnMissingConfig() throws {
342+
func testThrowsOnMissingConfig() async throws {
343343
let plugin = AWSPinpointAnalyticsPlugin()
344344
try Amplify.add(plugin: plugin)
345345

@@ -354,6 +354,8 @@ class AWSPinpointAnalyticsPluginConfigurationTests: XCTestCase {
354354
return
355355
}
356356
}
357+
358+
await Amplify.reset()
357359
}
358360

359361
}

0 commit comments

Comments
 (0)