Skip to content

Commit

Permalink
fix container instance error
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Mar 18, 2022
1 parent d0e9c3e commit ff0e99a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import XCTest
// swiftlint:disable redundant_discardable_let

class ContainerManagerTests: XCTestCase {
let manager = ContainerManager()
let manager = ContainerManager.share

override func setUp() {
manager.publishers.removeAll()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ class QueueHandlerForMultipleUnitTests: XCTestCase {
var containerConfiguration: ContainerConfiguration!
var handler: ContainerQueueHandler!

override class func setUp() {
ContainerManager.share.publishers.removeAll()
}

@MainActor
override func setUp() {
manager = ContainerManager()
manager = ContainerManager.share
manager.debugLevel = 3
self.containerConfiguration = ContainerConfiguration(
displayType: .stacking, queueType: .multiple, delayForShowingNext: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import XCTest

@MainActor
class QueueHandlerForOneByOneTests: XCTestCase {
let manager = ContainerManager()
let manager = ContainerManager.share
var containerConfiguration: ContainerConfiguration!
var handler: ContainerQueueHandler!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import XCTest

@MainActor
class QueueHandlerForOneByeOneWaitFinishTests: XCTestCase {
let manager = ContainerManager()
let manager = ContainerManager.share
var containerConfiguration: ContainerConfiguration!
var handler: ContainerQueueHandler!

Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftUIOverlayContainerTests/QueueHandlerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import XCTest

@MainActor
class QueueHandlerTests: XCTestCase {
let manager = ContainerManager()
let manager = ContainerManager.share
var containerConfiguration: ContainerConfiguration!
var handler: ContainerQueueHandler!

Expand Down

0 comments on commit ff0e99a

Please sign in to comment.