-
-
Save wtrocki/86e549d05dea5f82d0ac7e6ac2cced80 to your computer and use it in GitHub Desktop.
metrics integration testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MetricsIntegrationTest.swift | |
// AeroGearSdkExampleTests | |
@testable import AGSCore | |
import Foundation | |
import XCTest | |
class MetricsIntegrationTests: XCTestCase { | |
let expectation = expectationWithDescription("Example") | |
func testResponse () { | |
let metrics = AgsCore.instance.getMetrics() | |
metrics.publish([DeviceMetrics()], { (response: AgsHttpResponse?) -> Void in | |
print("Done") | |
expectation.fulfill() | |
}) | |
} | |
waitForExpectationsWithTimeout(10, handler: nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment