@@ -215,6 +215,7 @@ final class ClientServiceTests: BitwardenTestCase { // swiftlint:disable:this ty
215
215
/// `configPublisher` loads flags into the SDK.
216
216
@MainActor
217
217
func test_configPublisher_loadFlags( ) async throws {
218
+ configService. featureFlagsBool [ . cipherKeyEncryption] = true
218
219
configService. configSubject. send (
219
220
MetaServerConfig (
220
221
isPreAuth: false ,
@@ -282,11 +283,11 @@ final class ClientServiceTests: BitwardenTestCase { // swiftlint:disable:this ty
282
283
283
284
try await waitForAsync {
284
285
let client = try ? XCTUnwrap ( self . clientBuilder. clients. first)
285
- return client? . platformClient. featureFlags == [ " enableCipherKeyEncryption " : true ]
286
+ return client? . platformClient. featureFlags == [ " enableCipherKeyEncryption " : false ]
286
287
}
287
288
XCTAssertEqual ( clientBuilder. clients. count, 1 )
288
289
289
- configService. featureFlagsBool [ . cipherKeyEncryption] = false
290
+ configService. featureFlagsBool [ . cipherKeyEncryption] = true
290
291
configService. configSubject. send (
291
292
MetaServerConfig (
292
293
isPreAuth: false ,
@@ -295,7 +296,7 @@ final class ClientServiceTests: BitwardenTestCase { // swiftlint:disable:this ty
295
296
date: Date ( year: 2024 , month: 2 , day: 14 , hour: 7 , minute: 50 , second: 0 ) ,
296
297
responseModel: ConfigResponseModel (
297
298
environment: nil ,
298
- featureStates: [ : ] ,
299
+ featureStates: [ " cipher-key-encryption " : . bool ( true ) ] ,
299
300
gitHash: " 75238191 " ,
300
301
server: nil ,
301
302
version: " 2024.4.0 "
@@ -306,7 +307,7 @@ final class ClientServiceTests: BitwardenTestCase { // swiftlint:disable:this ty
306
307
307
308
try await waitForAsync {
308
309
let client = try ? XCTUnwrap ( self . clientBuilder. clients. first)
309
- return client? . platformClient. featureFlags == [ " enableCipherKeyEncryption " : false ]
310
+ return client? . platformClient. featureFlags == [ " enableCipherKeyEncryption " : true ]
310
311
}
311
312
XCTAssertEqual ( clientBuilder. clients. count, 1 )
312
313
}
0 commit comments