File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,22 @@ export async function newSdkClientEntity(options: any): Promise<SdkClientEntity>
328328 options . configuration . startWaitTimeMs !== undefined
329329 ? options . configuration . startWaitTimeMs
330330 : 5000 ;
331+
332+
333+ // TODO: synchronizer should be a list, but for this is a temporary workaround
334+ // so that we can pass the contract tests in a more reasonable manner.
335+ // SDK-1798
336+ const adaptedConfigs = {
337+ ...options . configuration ,
338+ } ;
339+
340+ adaptedConfigs . dataSystem . synchronizers = {
341+ primary : options . configuration . dataSystem . synchronizers ?. [ 0 ] ,
342+ secondary : options . configuration . dataSystem . synchronizers ?. [ 1 ] ,
343+ }
331344 const client : LDClient = ld . init (
332345 options . configuration . credential || 'unknown-sdk-key' ,
333- makeSdkConfig ( options . configuration , options . tag ) ,
346+ makeSdkConfig ( adaptedConfigs , options . tag ) ,
334347 ) ;
335348 try {
336349 await client . waitForInitialization ( { timeout } ) ;
You can’t perform that action at this time.
0 commit comments