Skip to content

Commit

Permalink
fixed tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KazaiMazai committed Sep 11, 2024
1 parent c1a963f commit 7aa3b9f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class StoreViewAlwaysEqualDeduplicationPropsTests: XCTestCase {
let timeout: TimeInterval = 4
let actionDelay: TimeInterval = 0.1

@StoreOf(\.rootStore) var store
let store = StateStore<Int, Int>(0) { state, action in state += action }

func setupWindowForTests(propsEvaluatedExpectation: XCTestExpectation) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class StoreViewContentRenderTests: XCTestCase {
let timeout: TimeInterval = 4
let actionDelay: TimeInterval = 0.1

@StoreOf(\.rootStore) var store
let store = StateStore<Int, Int>(0) { state, action in state += action }

@discardableResult func setupWindowForTests(contentRenderedExpectation: XCTestExpectation) -> UIWindow {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import Dispatch
final class StoreViewDeduplicationPropsTests: XCTestCase {
let timeout: TimeInterval = 4
let actionDelay: TimeInterval = 0.2
@StoreOf(\.rootStore) var store

let store = StateStore<Int, Int>(0) { state, action in state += action }

@discardableResult func setupWindowForTests(propsEvaluatedExpectation: XCTestExpectation) -> UIWindow {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import Dispatch
final class StoreViewNoDeduplicationPropsTests: XCTestCase {
let timeout: TimeInterval = 4
let actionDelay: TimeInterval = 0.3
@StoreOf(\.rootStore) var store

let store = StateStore<Int, Int>(0) { state, action in state += action }

@discardableResult func setupWindowForTests(propsEvaluatedExpectation: XCTestExpectation) -> UIWindow {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import Dispatch
final class StoreViewPresentationQueueTest: XCTestCase {
let timeout: TimeInterval = 4
let actionDelay: TimeInterval = 0.2
@StoreOf(\.rootStore) var store

let store = StateStore<Int, Int>(0) { state, action in state += action }

func test_WhenUseMainPresentationQueue_ThenPropsEvaluatedOnMainThread() {
let expectation = expectation(description: "view rendered")
Expand Down

0 comments on commit 7aa3b9f

Please sign in to comment.