From 31f1384aed3d2631981d3ae651f49fed76b2e887 Mon Sep 17 00:00:00 2001 From: Cornelius Horstmann Date: Fri, 6 Sep 2024 11:27:07 +0200 Subject: [PATCH] Updated specs to latest Quick and Nimble versions --- MatomoTrackerTests/UserDefaultsQueueSpec.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MatomoTrackerTests/UserDefaultsQueueSpec.swift b/MatomoTrackerTests/UserDefaultsQueueSpec.swift index 1def6b19..acc142c4 100644 --- a/MatomoTrackerTests/UserDefaultsQueueSpec.swift +++ b/MatomoTrackerTests/UserDefaultsQueueSpec.swift @@ -3,12 +3,12 @@ import Quick import Nimble class UserDefaultsQueueSpec: QuickSpec { - override func setUp() { - Nimble.AsyncDefaults.timeout = .seconds(10) - Nimble.AsyncDefaults.pollInterval = .milliseconds(100) + override class func setUp() { + Nimble.PollingDefaults.timeout = .seconds(10) + Nimble.PollingDefaults.pollInterval = .milliseconds(100) } - override func spec() { + override class func spec() { let userDefaults = UserDefaults(suiteName: "UserDefaultsQueueSpec")! afterEach { self.removeAllInSuite(suite: "UserDefaultsQueueSpec") @@ -157,7 +157,7 @@ class UserDefaultsQueueSpec: QuickSpec { } } } - private func removeAllInSuite(suite: String) { + private class func removeAllInSuite(suite: String) { guard let newuserDefaults = UserDefaults(suiteName: suite) else { return } let allKeys: [String]? = Array(newuserDefaults.dictionaryRepresentation().keys) for key in allKeys ?? [] {