25 lines
466 B
Swift
25 lines
466 B
Swift
//
|
|
// Extensions.swift
|
|
// Buildkite
|
|
//
|
|
// Created by Aaron Sky on 3/24/20.
|
|
// Copyright © 2020 Aaron Sky. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import XCTest
|
|
|
|
#if canImport(FoundationNetworking)
|
|
import FoundationNetworking
|
|
#endif
|
|
|
|
enum Constants {
|
|
fileprivate static let asyncTestTimeout = 1.0
|
|
}
|
|
|
|
extension XCTestCase {
|
|
func wait(for expectations: [XCTestExpectation]) {
|
|
wait(for: expectations, timeout: Constants.asyncTestTimeout)
|
|
}
|
|
}
|