소스 검색

fix: reduce the wait time to fire the callbacks

Riccardo Cipolleschi 5 년 전
부모
커밋
b8ee2d354e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      SwiftyStoreKitTests/ProductsInfoControllerTests.swift

+ 1 - 1
SwiftyStoreKitTests/ProductsInfoControllerTests.swift

@@ -160,7 +160,7 @@ class ProductsInfoControllerTests: XCTestCase {
         }
         }
       }
       }
     }
     }
-    DispatchQueue.global().asyncAfter(deadline: .now() + 1) {
+    DispatchQueue.global().asyncAfter(deadline: .now()+0.1) {
       requestBuilder.fireCallbacks()
       requestBuilder.fireCallbacks()
     }
     }
     // Fullfil the expectation when every thread finishes
     // Fullfil the expectation when every thread finishes