Преглед на файлове

Fix test for CI performance

onevcat преди 7 години
родител
ревизия
21998dc0d6
променени са 2 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 1 1
      Tests/KingfisherTests/ImagePrefetcherTests.swift
  2. 1 3
      fastlane/Fastfile

+ 1 - 1
Tests/KingfisherTests/ImagePrefetcherTests.swift

@@ -312,6 +312,6 @@ class ImagePrefetcherTests: XCTestCase {
             prefetcher.start()
         }
         group.notify(queue: .main) { exp.fulfill() }
-        waitForExpectations(timeout: 3, handler: nil)
+        waitForExpectations(timeout: 10, handler: nil)
     }
 }

+ 1 - 3
fastlane/Fastfile

@@ -16,9 +16,7 @@ platform :ios do
   end
 
   lane :test do |options|
-    # Sometimes Travis CI would fail due to timeout. 
-    # Not sure why but just rerunning the test perfectly fixes it. :[
-    _test(options) rescue _test(options)
+    _test(options)
   end
 
   private_lane :_test do |options|