diff --git a/harness/features/multithreading.local.test.ts b/harness/features/multithreading.local.test.ts index d55ca30e..189bc558 100644 --- a/harness/features/multithreading.local.test.ts +++ b/harness/features/multithreading.local.test.ts @@ -380,6 +380,7 @@ describe('Multithreading Tests', () => { etag: null, rayId: null, lastModified: null, + skipSDKConfigEvent: true }) }) }) diff --git a/harness/features/track.local.test.ts b/harness/features/track.local.test.ts index 1e77cf71..ec866e32 100644 --- a/harness/features/track.local.test.ts +++ b/harness/features/track.local.test.ts @@ -135,7 +135,8 @@ describe('Track Tests - Local', () => { ) expect(eventBody).toEqual({ - batch: [ + batch: expect.arrayContaining([ + ...(hasCapability(sdkName, Capabilities.sdkConfigEvent) ? [sdkConfigEventBatch] : []), @@ -162,7 +163,7 @@ describe('Track Tests - Local', () => { }, ], }, - ], + ]), }) }) diff --git a/harness/helpers/events.ts b/harness/helpers/events.ts index 7ba93439..76b69b5a 100644 --- a/harness/helpers/events.ts +++ b/harness/helpers/events.ts @@ -28,10 +28,10 @@ const addSDKConfigEventBatch = (sdkName: string, expectedPlatform: string) => { type: 'sdkConfig', target: expect.any(String), value: expect.any(Number), - featureVars: { + featureVars: expect.toBeOneOf([{ '6386813a59f1b81cc9e6c68d': '6386813a59f1b81cc9e6c693', - }, + }, {}]), metaData: expect.objectContaining({ clientUUID: expect.any(String), resStatus: 200, @@ -182,7 +182,7 @@ export const expectAggregateDefaultEvent = ({ } expect(body).toEqual({ - batch: expect.toIncludeSameMembers([ + batch: expect.arrayContaining([ ...optionalSDKConfigNewUser, { user: { @@ -191,7 +191,7 @@ export const expectAggregateDefaultEvent = ({ platform: expectedPlatform, sdkType: 'server', }, - events: expect.toIncludeSameMembers([ + events: expect.arrayContaining([ ...optionalSDKConfigNewEvent, { ...optionalEventFields, diff --git a/proxies/go/go.mod b/proxies/go/go.mod index 44cff069..2749425a 100644 --- a/proxies/go/go.mod +++ b/proxies/go/go.mod @@ -1,6 +1,6 @@ module github.com/devcyclehq/test-harness/proxies/go -go 1.22 +go 1.22.2 require ( github.com/devcyclehq/go-server-sdk/v2 v2.14.0