You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Collections] refreshCollection should have correct source config (#3314)
Motivation:
`refreshCollection` relies on `CollectionSource` argument to provide the correct source config, but it should:
1. Check that the source exists in the config
2. Read latest source config from storage
Modifications:
Update `refreshCollection` to check that the given source exists in config file before actually doing a refresh. Also make sure that `Collection`'s `source` is current before returning it.
// Don't add collection so it's not found in the config
1013
+
XCTAssertThrowsError(trytsc_await{ callback in packageCollections.refreshCollection(mockCollections[0].source, callback: callback)},"expected error"){ error in
0 commit comments