Skip to content

Commit

Permalink
analytics: add some missing asyncs
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Oct 12, 2023
1 parent 81a16bb commit b878ba4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class AWSPinpointAnalyticsPluginIntergrationTests: XCTestCase {
/// Given: Analytics plugin
/// When: An analytics event is recorded and flushed
/// Then: Flush Hub event is received
func testRecordEventsAreFlushed() {
func testRecordEventsAreFlushed() async {
let onlineExpectation = expectation(description: "Device is online")
let networkMonitor = NWPathMonitor()
networkMonitor.pathUpdateHandler = { newPath in
Expand Down Expand Up @@ -144,7 +144,7 @@ class AWSPinpointAnalyticsPluginIntergrationTests: XCTestCase {
/// Given: Analytics plugin
/// When: An analytics event is recorded and flushed after the plugin is enabled
/// Then: Flush Hub event is received
func testRecordsAreFlushedWhenPluginEnabled() {
func testRecordsAreFlushedWhenPluginEnabled() async {
let onlineExpectation = expectation(description: "Device is online")
let networkMonitor = NWPathMonitor()
networkMonitor.pathUpdateHandler = { newPath in
Expand Down Expand Up @@ -192,7 +192,7 @@ class AWSPinpointAnalyticsPluginIntergrationTests: XCTestCase {
/// Given: Analytics plugin
/// When: An analytics event is recorded and flushed after the plugin is disabled
/// Then: Flush Hub event is not received
func testRecordsAreNotFlushedWhenPluginDisabled() {
func testRecordsAreNotFlushedWhenPluginDisabled() async {
let onlineExpectation = expectation(description: "Device is online")
let networkMonitor = NWPathMonitor()
networkMonitor.pathUpdateHandler = { newPath in
Expand Down Expand Up @@ -233,7 +233,7 @@ class AWSPinpointAnalyticsPluginIntergrationTests: XCTestCase {
/// Given: Analytics plugin
/// When: An analytics event is recorded and flushed with global properties registered
/// Then: Flush Hub event is received with global properties
func testRegisterGlobalProperties() {
func testRegisterGlobalProperties() async {
let onlineExpectation = expectation(description: "Device is online")
let networkMonitor = NWPathMonitor()
networkMonitor.pathUpdateHandler = { newPath in
Expand Down Expand Up @@ -286,7 +286,7 @@ class AWSPinpointAnalyticsPluginIntergrationTests: XCTestCase {
/// Given: Analytics plugin
/// When: An analytics event is recorded and flushed with global properties registered and then unregistered
/// Then: Flush Hub event is received without global properties
func testUnRegisterGlobalProperties() {
func testUnRegisterGlobalProperties() async {
let onlineExpectation = expectation(description: "Device is online")
let networkMonitor = NWPathMonitor()
networkMonitor.pathUpdateHandler = { newPath in
Expand Down

0 comments on commit b878ba4

Please sign in to comment.