Go SDKConfig Event #1429
915 passed, 68 failed and 199 skipped
❌ jest-junit.xml
1182 tests were completed in 470s with 915 passed, 68 failed and 199 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
harness/features/allFeatures.cloud.test.ts | 2✅ | 1⚪ | 181ms | |
harness/features/allFeatures.cloud.test.ts | 2✅ | 1⚪ | 176ms | |
harness/features/allFeatures.cloud.test.ts | 2✅ | 1⚪ | 177ms | |
harness/features/allFeatures.cloud.test.ts | 3⚪ | 153ms | ||
harness/features/allFeatures.cloud.test.ts | 3⚪ | 301ms | ||
harness/features/allFeatures.cloud.test.ts | 2✅ | 1⚪ | 195ms | |
harness/features/allFeatures.cloud.test.ts | 2✅ | 1⚪ | 171ms | |
harness/features/allFeatures.cloud.test.ts | 2✅ | 1⚪ | 162ms | |
harness/features/allFeatures.local.test.ts | 3✅ | 3s | ||
harness/features/allFeatures.local.test.ts | 3✅ | 3s | ||
harness/features/allFeatures.local.test.ts | 3✅ | 368ms | ||
harness/features/allFeatures.local.test.ts | 3✅ | 232ms | ||
harness/features/allFeatures.local.test.ts | 3✅ | 311ms | ||
harness/features/allFeatures.local.test.ts | 1✅ | 2❌ | 261ms | |
harness/features/allFeatures.local.test.ts | 3✅ | 474ms | ||
harness/features/allFeatures.local.test.ts | 3✅ | 653ms | ||
harness/features/allVariables.cloud.test.ts | 5✅ | 268ms | ||
harness/features/allVariables.cloud.test.ts | 5✅ | 242ms | ||
harness/features/allVariables.cloud.test.ts | 5✅ | 4s | ||
harness/features/allVariables.cloud.test.ts | 5⚪ | 171ms | ||
harness/features/allVariables.cloud.test.ts | 5⚪ | 178ms | ||
harness/features/allVariables.cloud.test.ts | 5✅ | 4s | ||
harness/features/allVariables.cloud.test.ts | 5✅ | 7s | ||
harness/features/allVariables.cloud.test.ts | 5✅ | 7s | ||
harness/features/allVariables.local.test.ts | 2✅ | 460ms | ||
harness/features/allVariables.local.test.ts | 2✅ | 398ms | ||
harness/features/allVariables.local.test.ts | 2✅ | 3s | ||
harness/features/allVariables.local.test.ts | 2✅ | 2s | ||
harness/features/allVariables.local.test.ts | 2✅ | 2s | ||
harness/features/allVariables.local.test.ts | 2✅ | 376ms | ||
harness/features/allVariables.local.test.ts | 2❌ | 3s | ||
harness/features/allVariables.local.test.ts | 2✅ | 3s | ||
harness/features/bootstrapping.test.ts | 2⚪ | 201ms | ||
harness/features/bootstrapping.test.ts | 2⚪ | 165ms | ||
harness/features/bootstrapping.test.ts | 2⚪ | 142ms | ||
harness/features/bootstrapping.test.ts | 2⚪ | 222ms | ||
harness/features/bootstrapping.test.ts | 2⚪ | 269ms | ||
harness/features/bootstrapping.test.ts | 2⚪ | 358ms | ||
harness/features/bootstrapping.test.ts | 2⚪ | 263ms | ||
harness/features/bootstrapping.test.ts | 2✅ | 302ms | ||
harness/features/clientCustomData.test.ts | 2✅ | 589ms | ||
harness/features/clientCustomData.test.ts | 2✅ | 442ms | ||
harness/features/clientCustomData.test.ts | 2⚪ | 139ms | ||
harness/features/clientCustomData.test.ts | 2⚪ | 150ms | ||
harness/features/clientCustomData.test.ts | 2✅ | 2s | ||
harness/features/clientCustomData.test.ts | 2✅ | 416ms | ||
harness/features/clientCustomData.test.ts | 2⚪ | 164ms | ||
harness/features/clientCustomData.test.ts | 2✅ | 1s | ||
harness/features/initialize.cloud.test.ts | 3✅ | 142ms | ||
harness/features/initialize.cloud.test.ts | 3✅ | 138ms | ||
harness/features/initialize.cloud.test.ts | 3✅ | 120ms | ||
harness/features/initialize.cloud.test.ts | 3⚪ | 169ms | ||
harness/features/initialize.cloud.test.ts | 3⚪ | 98ms | ||
harness/features/initialize.cloud.test.ts | 3✅ | 122ms | ||
harness/features/initialize.cloud.test.ts | 3✅ | 277ms | ||
harness/features/initialize.cloud.test.ts | 3✅ | 129ms | ||
harness/features/initialize.local.test.ts | 12✅ | 1⚪ | 19s | |
harness/features/initialize.local.test.ts | 12✅ | 1⚪ | 19s | |
harness/features/initialize.local.test.ts | 12✅ | 1⚪ | 14s | |
harness/features/initialize.local.test.ts | 12✅ | 1⚪ | 15s | |
harness/features/initialize.local.test.ts | 12✅ | 1⚪ | 14s | |
harness/features/initialize.local.test.ts | 6✅ | 6❌ | 1⚪ | 15s |
harness/features/initialize.local.test.ts | 12✅ | 1⚪ | 16s | |
harness/features/initialize.local.test.ts | 12✅ | 1⚪ | 15s | |
harness/features/multithreading.local.test.ts | 5⚪ | 188ms | ||
harness/features/multithreading.local.test.ts | 5⚪ | 187ms | ||
harness/features/multithreading.local.test.ts | 5⚪ | 310ms | ||
harness/features/multithreading.local.test.ts | 5⚪ | 1s | ||
harness/features/multithreading.local.test.ts | 5⚪ | 1s | ||
harness/features/multithreading.local.test.ts | 5⚪ | 1s | ||
harness/features/multithreading.local.test.ts | 5⚪ | 191ms | ||
harness/features/multithreading.local.test.ts | 1✅ | 4❌ | 6s | |
harness/features/track.cloud.test.ts | 4✅ | 162ms | ||
harness/features/track.cloud.test.ts | 4✅ | 185ms | ||
harness/features/track.cloud.test.ts | 4✅ | 322ms | ||
harness/features/track.cloud.test.ts | 4⚪ | 231ms | ||
harness/features/track.cloud.test.ts | 4⚪ | 903ms | ||
harness/features/track.cloud.test.ts | 4✅ | 400ms | ||
harness/features/track.cloud.test.ts | 4✅ | 375ms | ||
harness/features/track.cloud.test.ts | 4✅ | 307ms | ||
harness/features/track.local.test.ts | 4✅ | 8s | ||
harness/features/track.local.test.ts | 4✅ | 8s | ||
harness/features/track.local.test.ts | 4✅ | 6s | ||
harness/features/track.local.test.ts | 4✅ | 7s | ||
harness/features/track.local.test.ts | 4✅ | 7s | ||
harness/features/track.local.test.ts | 4❌ | 7s | ||
harness/features/track.local.test.ts | 4✅ | 6s | ||
harness/features/track.local.test.ts | 4✅ | 8s | ||
harness/features/variable.cloud.test.ts | 34✅ | 2⚪ | 891ms | |
harness/features/variable.cloud.test.ts | 34✅ | 2⚪ | 6s | |
harness/features/variable.cloud.test.ts | 32✅ | 2⚪ | 28s | |
harness/features/variable.cloud.test.ts | 36⚪ | 156ms | ||
harness/features/variable.cloud.test.ts | 36⚪ | 143ms | ||
harness/features/variable.cloud.test.ts | 34✅ | 2⚪ | 28s | |
harness/features/variable.cloud.test.ts | 34✅ | 2⚪ | 54s | |
harness/features/variable.cloud.test.ts | 34✅ | 2⚪ | 55s | |
harness/features/variable.local.test.ts | 66✅ | 41s | ||
harness/features/variable.local.test.ts | 66✅ | 42s | ||
harness/features/variable.local.test.ts | 58✅ | 8⚪ | 47s | |
harness/features/variable.local.test.ts | 58✅ | 8⚪ | 31s | |
harness/features/variable.local.test.ts | 16✅ | 50❌ | 48s | |
harness/features/variable.local.test.ts | 66✅ | 52s | ||
harness/features/variable.local.test.ts | 66✅ | 42s | ||
harness/features/variable.local.test.ts | 66✅ | 47s |
❌ harness/features/allFeatures.local.test.ts
allFeatures Tests - Local › uninitialized client
✅ should return empty object if client is uninitialized
allFeatures Tests - Local › initialized client
❌ should return all features for user without custom data
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/7eee2cd6-67a5-47c2-82dc-fb5c6d1c4d61/v1/events/batch
❌ should return all features for user with custom data
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/0963749b-b0d7-4fbd-afaa-993b9f596e4c/v1/events/batch
❌ harness/features/allVariables.local.test.ts
allVariables Tests - Local
❌ should return an empty object if client is not initialized
Error: Config request never received!
❌ should return a variable map for a bucketed user
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/7f7b1c97-bb9b-4746-b211-ff97fe21f7f1/v1/events/batch
❌ harness/features/initialize.local.test.ts
Initialize Tests - Local
✅ should error when SDK key is missing
✅ should error when SDK key is invalid
❌ initializes correctly on valid data
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/d2239978-10a8-4674-935d-56911595cefa/v1/events/batch
❌ calls initialize promise/callback when config is successfully retrieved
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/0bf8041d-353c-4546-924b-b3d5a7477508/v1/events/batch
✅ calls initialize promise/callback when config fails to be retrieved
✅ defaults variable when config fails to be retrieved, and then recovers
⚪ stops the polling interval when the sdk key is invalid and cdn responds 403, throws error
❌ fetches config again after 3 seconds when config polling interval is overriden
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/d831a675-c6fa-45d7-8f56-6867801e9875/v1/events/batch
❌ uses the same config if the etag matches
Error: expect(received).toEqual(expected) // deep equality
✅ uses the same config if the refetch fails, after retrying once
✅ uses the same config if the response is invalid JSON
❌ uses the same config if the response is valid JSON but invalid data
Error: expect(received).toEqual(expected) // deep equality
❌ uses the new config when etag changes, and flushes existing events
Error: expect(received).toEqual(expected) // deep equality
❌ harness/features/multithreading.local.test.ts
Multithreading Tests › Go › initialized client
❌ should return variable if SDK returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate events across threads
Error: expect(received).toEqual(expected) // deep equality
❌ should retry events across threads
Error: expect(received).toEqual(expected) // deep equality
Multithreading Tests › Go › initialized client › Go
✅ should set client custom data and use it for segmentation
Multithreading Tests › Go › uninitialized client
❌ should return default value if client is uninitialized, log event
Error: expect(received).toEqual(expected) // deep equality
❌ harness/features/track.local.test.ts
Track Tests - Local › Expect no events sent
❌ should not send an event if the event type not set
Error: Event callback timed out
Track Tests - Local › Expect events sent
❌ should call events API to track event
Error: expect(received).toEqual(expected) // deep equality
❌ should call events API to track 2 events
Error: expect(received).toEqual(expected) // deep equality
❌ should retry events API call to track 2 events and check interval of events is in specified window
Error: expect(received).toEqual(expected) // deep equality
❌ harness/features/variable.local.test.ts
Variable Tests - Local › initialized client › Variable string tests
❌ should return variable if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return variableValue if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variable type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variableValue type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variable
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variable doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variableValue doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variableValue
Error: expect(received).toEqual(expected) // deep equality
Variable Tests - Local › initialized client › Variable number tests
❌ should return variable if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return variableValue if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variable type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variableValue type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variable
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variable doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variableValue doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variableValue
Error: expect(received).toEqual(expected) // deep equality
Variable Tests - Local › initialized client › Variable boolean tests
❌ should return variable if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return variableValue if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variable type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variableValue type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variable
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variable doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variableValue doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variableValue
Error: expect(received).toEqual(expected) // deep equality
Variable Tests - Local › initialized client › Variable JSON tests
❌ should return variable if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return variableValue if mock server returns object matching default type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variable type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if default type doesn't match variableValue type
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variable
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if user is not bucketed into variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variable doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should return default value if variableValue doesn't exist
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableDefaulted events for variableValue
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should aggregate aggVariableEvaluated events for variableValue
Error: expect(received).toEqual(expected) // deep equality
Variable Tests - Local › initialized client
❌ should return a valid unicode string for variable
Error: expect(received).toEqual(expected) // deep equality
❌ should return a valid unicode string for variableValue
Error: expect(received).toEqual(expected) // deep equality
Variable Tests - Local › uninitialized client › Variable string tests
✅ should return variable default value if client is uninitialized, log event
✅ should return variableValue default value if client is uninitialized, log event
✅ should return default value for variable if client config failed, log event
✅ should return default value for variableValue if client config failed, log event
Variable Tests - Local › uninitialized client › Variable number tests
✅ should return variable default value if client is uninitialized, log event
✅ should return variableValue default value if client is uninitialized, log event
✅ should return default value for variable if client config failed, log event
✅ should return default value for variableValue if client config failed, log event
Variable Tests - Local › uninitialized client › Variable boolean tests
✅ should return variable default value if client is uninitialized, log event
✅ should return variableValue default value if client is uninitialized, log event
✅ should return default value for variable if client config failed, log event
✅ should return default value for variableValue if client config failed, log event
Variable Tests - Local › uninitialized client › Variable JSON tests
✅ should return variable default value if client is uninitialized, log event
✅ should return variableValue default value if client is uninitialized, log event
✅ should return default value for variable if client config failed, log event
✅ should return default value for variableValue if client config failed, log event
Annotations
Check failure on line 105 in harness/helpers/helpers.ts
github-actions / Test Report
harness/features/allFeatures.local.test.ts ► allFeatures Tests - Local › initialized client ► should return all features for user without custom data
Failed test found in:
jest-junit.xml
Error:
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/7eee2cd6-67a5-47c2-82dc-fb5c6d1c4d61/v1/events/batch
Raw output
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/7eee2cd6-67a5-47c2-82dc-fb5c6d1c4d61/v1/events/batch
at cleanupCurrentClient (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:105:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:92:9)
Check failure on line 105 in harness/helpers/helpers.ts
github-actions / Test Report
harness/features/allFeatures.local.test.ts ► allFeatures Tests - Local › initialized client ► should return all features for user with custom data
Failed test found in:
jest-junit.xml
Error:
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/0963749b-b0d7-4fbd-afaa-993b9f596e4c/v1/events/batch
Raw output
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/0963749b-b0d7-4fbd-afaa-993b9f596e4c/v1/events/batch
at cleanupCurrentClient (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:105:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:92:9)
Check failure on line 217 in harness/helpers/helpers.ts
github-actions / Test Report
harness/features/allVariables.local.test.ts ► allVariables Tests - Local ► should return an empty object if client is not initialized
Failed test found in:
jest-junit.xml
Error:
Error: Config request never received!
Raw output
Error: Config request never received!
at Timeout._onTimeout (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:217:20)
at listOnTimeout (node:internal/timers:573:17)
at processTimers (node:internal/timers:514:7)
Check failure on line 105 in harness/helpers/helpers.ts
github-actions / Test Report
harness/features/allVariables.local.test.ts ► allVariables Tests - Local ► should return a variable map for a bucketed user
Failed test found in:
jest-junit.xml
Error:
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/7f7b1c97-bb9b-4746-b211-ff97fe21f7f1/v1/events/batch
Raw output
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/7f7b1c97-bb9b-4746-b211-ff97fe21f7f1/v1/events/batch
at cleanupCurrentClient (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:105:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:92:9)
Check failure on line 105 in harness/helpers/helpers.ts
github-actions / Test Report
harness/features/initialize.local.test.ts ► Initialize Tests - Local ► initializes correctly on valid data
Failed test found in:
jest-junit.xml
Error:
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/d2239978-10a8-4674-935d-56911595cefa/v1/events/batch
Raw output
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/d2239978-10a8-4674-935d-56911595cefa/v1/events/batch
at cleanupCurrentClient (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:105:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:92:9)
Check failure on line 105 in harness/helpers/helpers.ts
github-actions / Test Report
harness/features/initialize.local.test.ts ► Initialize Tests - Local ► calls initialize promise/callback when config is successfully retrieved
Failed test found in:
jest-junit.xml
Error:
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/0bf8041d-353c-4546-924b-b3d5a7477508/v1/events/batch
Raw output
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/0bf8041d-353c-4546-924b-b3d5a7477508/v1/events/batch
at cleanupCurrentClient (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:105:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:92:9)
Check failure on line 105 in harness/helpers/helpers.ts
github-actions / Test Report
harness/features/initialize.local.test.ts ► Initialize Tests - Local ► fetches config again after 3 seconds when config polling interval is overriden
Failed test found in:
jest-junit.xml
Error:
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/d831a675-c6fa-45d7-8f56-6867801e9875/v1/events/batch
Raw output
Error: Requests were expected but not received: POST https://myfakenockurl:443/client/d831a675-c6fa-45d7-8f56-6867801e9875/v1/events/batch
at cleanupCurrentClient (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:105:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/helpers/helpers.ts:92:9)
Check failure on line 229 in harness/features/initialize.local.test.ts
github-actions / Test Report
harness/features/initialize.local.test.ts ► Initialize Tests - Local ► uses the same config if the etag matches
Failed test found in:
jest-junit.xml
Error:
Error: expect(received).toEqual(expected) // deep equality
Raw output
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 1
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/features/initialize.local.test.ts:229:45)
Check failure on line 341 in harness/features/initialize.local.test.ts
github-actions / Test Report
harness/features/initialize.local.test.ts ► Initialize Tests - Local ► uses the same config if the response is valid JSON but invalid data
Failed test found in:
jest-junit.xml
Error:
Error: expect(received).toEqual(expected) // deep equality
Raw output
Error: expect(received).toEqual(expected) // deep equality
Expected: 0
Received: 1
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/features/initialize.local.test.ts:341:45)
Check failure on line 98 in harness/helpers/events.ts
github-actions / Test Report
harness/features/initialize.local.test.ts ► Initialize Tests - Local ► uses the new config when etag changes, and flushes existing events
Failed test found in:
jest-junit.xml
Error:
Error: expect(received).toEqual(expected) // deep equality
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 42
+ Received + 3
@@ -3,62 +3,23 @@
Object {
"events": Array [
Object {
"clientDate": Any<String>,
"date": toBeOneOf<,,Any>,
- "featureVars": Object {
- "6386813a59f1b81cc9e6c68d": "6386813a59f1b81cc9e6c693",
- },
- "metaData": ObjectContaining {
- "clientUUID": Any<String>,
- "resStatus": 200,
- },
- "target": Any<String>,
- "type": "sdkConfig",
- "user_id": Any<String>,
- "value": Any<Number>,
- },
- ],
- "user": Object {
- "appBuild": toBeOneOf<,,0>,
- "appVersion": toBeNil<>,
- "country": toBeNil<>,
- "createdDate": Any<String>,
- "customData": toBeNil<>,
- "deviceModel": toBeNil<>,
- "email": toBeNil<>,
- "hostname": toBeOneOf<,,Any>,
- "language": toBeNil<>,
- "lastSeenDate": Any<String>,
- "name": toBeNil<>,
- "platform": "Go",
- "platformVersion": Any<String>,
- "privateCustomData": toBeNil<>,
- "sdkType": "server",
- "sdkVersion": Any<String>,
- "user_id": Any<String>,
- },
- },
- Object {
- "events": Array [
- Object {
- "clientDate": Any<String>,
- "customType": toBeNil<>,
- "date": toBeOneOf<,,Any>,
"featureVars": Object {},
"metaData": Object {
"_feature": "638680d6fcb67b96878d90e6",
"_variation": "638680d6fcb67b96878d90ec",
- "clientUUID": Any<String>,
+ "clientUUID": "7938e76a-a875-465d-8ae5-d7469df9dc7b",
"configEtag": "first-etag",
"configLastModified": "Mon, 03 Jun 2024 18:31:09 GMT",
"configRayId": "first-ray",
},
- "target": "number-var",
+ "target": Any<String>,
"type": "aggVariableEvaluated",
"user_id": Any<String>,
- "value": 1,
+ "value": Any<Number>,
},
],
"user": Object {
"appBuild": toBeOneOf<,,0>,
"appVersion": toBeNil<>,
at expectAggregateEvaluationEvent (/home/runner/work/test-harness/test-harness/harness/helpers/events.ts:98:18)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/features/initialize.local.test.ts:473:43)
Check failure on line 98 in harness/helpers/events.ts
github-actions / Test Report
harness/features/multithreading.local.test.ts ► Multithreading Tests › Go › initialized client ► should return variable if SDK returns object matching default type
Failed test found in:
jest-junit.xml
Error:
Error: expect(received).toEqual(expected) // deep equality
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 42
+ Received + 3
@@ -3,62 +3,23 @@
Object {
"events": Array [
Object {
"clientDate": Any<String>,
"date": toBeOneOf<,,Any>,
- "featureVars": Object {
- "6386813a59f1b81cc9e6c68d": "6386813a59f1b81cc9e6c693",
- },
- "metaData": ObjectContaining {
- "clientUUID": Any<String>,
- "resStatus": 200,
- },
- "target": Any<String>,
- "type": "sdkConfig",
- "user_id": Any<String>,
- "value": Any<Number>,
- },
- ],
- "user": Object {
- "appBuild": toBeOneOf<,,0>,
- "appVersion": toBeNil<>,
- "country": toBeNil<>,
- "createdDate": Any<String>,
- "customData": toBeNil<>,
- "deviceModel": toBeNil<>,
- "email": toBeNil<>,
- "hostname": toBeOneOf<,,Any>,
- "language": toBeNil<>,
- "lastSeenDate": Any<String>,
- "name": toBeNil<>,
- "platform": "Go",
- "platformVersion": Any<String>,
- "privateCustomData": toBeNil<>,
- "sdkType": "server",
- "sdkVersion": Any<String>,
- "user_id": Any<String>,
- },
- },
- Object {
- "events": Array [
- Object {
- "clientDate": Any<String>,
- "customType": toBeNil<>,
- "date": toBeOneOf<,,Any>,
"featureVars": Object {},
"metaData": Object {
"_feature": "638680d6fcb67b96878d90e6",
"_variation": "638680d6fcb67b96878d90ec",
- "clientUUID": Any<String>,
+ "clientUUID": "59a96ff6-b98f-4f49-8bc7-d6a1adf784f3",
"configEtag": "multithreading-etag",
"configLastModified": "Mon, 03 Jun 2024 18:31:34 GMT",
"configRayId": "multithreading-rayid",
},
- "target": "string-var",
+ "target": Any<String>,
"type": "aggVariableEvaluated",
"user_id": Any<String>,
- "value": 1,
+ "value": Any<Number>,
},
],
"user": Object {
"appBuild": toBeOneOf<,,0>,
"appVersion": toBeNil<>,
at expectAggregateEvaluationEvent (/home/runner/work/test-harness/test-harness/harness/helpers/events.ts:98:18)
at Object.<anonymous> (/home/runner/work/test-harness/test-harness/harness/features/multithreading.local.test.ts:104:47)