Skip to content

Instantly share code, notes, and snippets.

@wtrocki
Forked from psturc/MetricsIntegrationTest.swift
Last active April 9, 2018 09:42
Show Gist options
  • Save wtrocki/86e549d05dea5f82d0ac7e6ac2cced80 to your computer and use it in GitHub Desktop.
Save wtrocki/86e549d05dea5f82d0ac7e6ac2cced80 to your computer and use it in GitHub Desktop.
metrics integration testing
//
// 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