Skip to content

Commit bda33ac

Browse files
committed
Fix swiftlint and remove redundant test
1 parent c222ba1 commit bda33ac

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

MeetingBar/Core/EventStores/GCEventStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class GCEventStore: NSObject, EventStore, @preconcurrency OIDExternalUserAgent {
237237
accessToken: access,
238238
refreshToken: refresh,
239239
expiry: tr.accessTokenExpirationDate ?? Date(),
240-
email: userEmail),
240+
email: userEmail)
241241
)
242242
}
243243

MeetingBarTests/EventManagerTests.swift

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -56,34 +56,4 @@ class EventManagerTests: XCTestCase {
5656
// 4) Wait
5757
wait(for: [calExpectation, evtExpectation], timeout: 1.0)
5858
}
59-
60-
func testManualRefreshAfterSwappingStore() async {
61-
// 1) Start with one store…
62-
let initialStore = FakeEventStore(calendars: [], events: [])
63-
let manager = EventManager(provider: initialStore, refreshInterval: 0.05)
64-
65-
// …then swap in a richer store
66-
let newCal = MBCalendar(title: "New", id: "newCal", source: nil, email: nil, color: .black)
67-
let newEvt = makeFakeEvent(id: "X", start: Date(), end: Date().addingTimeInterval(600))
68-
let newStore = FakeEventStore(calendars: [newCal], events: [newEvt])
69-
70-
manager.provider = newStore // inject…
71-
try! await manager.refreshSources() // …and manually trigger
72-
73-
let expCal = expectation(description: "got swapped calendars")
74-
manager.$calendars
75-
.drop(while: \.isEmpty)
76-
.first()
77-
.sink { XCTAssertEqual($0, [newCal]); expCal.fulfill() }
78-
.store(in: &cancellables)
79-
80-
let expEvt = expectation(description: "got swapped events")
81-
manager.$events
82-
.drop(while: \.isEmpty)
83-
.first()
84-
.sink { XCTAssertEqual($0, [newEvt]); expEvt.fulfill() }
85-
.store(in: &cancellables)
86-
87-
await fulfillment(of: [expCal, expEvt], timeout: 1.0)
88-
}
8959
}

0 commit comments

Comments
 (0)