Skip to content

Client instance service #1501

Client instance service

Client instance service #1501

GitHub Actions / Unit Tests failed Oct 23, 2023 in 1s

Unit Tests ❌

Tests failed

❌ jest-junit.xml

2436 tests were completed in 269s with 2427 passed, 7 failed and 2 skipped.

Test suite Passed Failed Skipped Time
src/lib/addons/addon.test.ts 4✅ 6s
src/lib/addons/datadog.test.ts 7✅ 1s
src/lib/addons/feature-event-formatter-md.test.ts 26✅ 1s
src/lib/addons/slack-app.test.ts 7✅ 1s
src/lib/addons/slack.test.ts 8✅ 1s
src/lib/addons/teams.test.ts 5✅ 1s
src/lib/addons/webhook.test.ts 4✅ 2s
src/lib/app.test.ts 3✅ 3s
src/lib/create-config.test.ts 35✅ 2s
src/lib/db/access-store.test.ts 10✅ 3s
src/lib/db/event-store.test.ts 3✅ 2s
src/lib/db/feature-strategy-store.test.ts 4✅ 4s
src/lib/db/segment-store.test.ts 1✅ 16s
src/lib/domain/project-health/project-health.test.ts 9✅ 538ms
src/lib/error/unleash-error.test.ts 26✅ 706ms
src/lib/features/client-feature-toggles/tests/client-feature-toggle.e2e.test.ts 3✅ 3s
src/lib/features/client-feature-toggles/tests/client-feature-toggles.e2e.test.ts 5✅ 6s
src/lib/features/dependent-features/dependent.features.e2e.test.ts 8✅ 6s
src/lib/features/export-import-toggles/export-import-api-usage.test.ts 1✅ 5s
src/lib/features/export-import-toggles/export-import-permissions.e2e.test.ts 1✅ 6s
src/lib/features/export-import-toggles/export-import.e2e.test.ts 17✅ 11s
src/lib/features/export-import-toggles/import-context-validation.test.ts 3✅ 165ms
src/lib/features/feature-naming-pattern/feature-naming-validation.test.ts 13✅ 454ms
src/lib/features/feature-toggle/tests/archive-feature-toggles.e2e.test.ts 7✅ 6s
src/lib/features/feature-toggle/tests/deep-diff.test.ts 6✅ 350ms
src/lib/features/feature-toggle/tests/feature-toggle-last-seen-at.e2e.test.ts 4✅ 6s
src/lib/features/feature-toggle/tests/feature-toggle-service.e2e.test.ts 17✅ 6s
src/lib/features/feature-toggle/tests/feature-toggle-store.e2e.test.ts 14✅ 3s
src/lib/features/feature-toggle/tests/feature-toggle-strategies-store.e2e.test.ts 4✅ 3s
src/lib/features/feature-toggle/tests/feature-toggles.auth.e2e.test.ts 3✅ 6s
src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts 99✅ 24s
src/lib/features/feature-toggle/time-to-production/time-to-production.test.ts 1✅ 623ms
src/lib/features/instance-stats/getActiveUsers.e2e.test.ts 6✅ 4s
src/lib/features/instance-stats/getProductionChanges.e2e.test.ts 7✅ 5s
src/lib/features/instance-stats/instance-stats-service.test.ts 2✅ 1s
src/lib/features/playground/advanced-playground.test.ts 5✅ 6s
src/lib/features/playground/generateObjectCombinations.test.ts 3✅ 227ms
src/lib/features/playground/offline-unleash-client.test.ts 10✅ 816ms
src/lib/features/playground/playground-view-model.test.ts 2✅ 486ms
src/lib/features/playground/playground.test.ts 7✅ 14s
src/lib/features/playground/validateQueryComplexity.test.ts 2✅ 270ms
src/lib/logger.test.ts 2✅ 510ms
src/lib/metrics.test.ts 9✅ 2s
src/lib/middleware/api-token-middleware.test.ts 8✅ 1s
src/lib/middleware/content_type_checker.test.ts 5✅ 395ms
src/lib/middleware/cors-origin-middleware.test.ts 5✅ 3s
src/lib/middleware/no-authentication.test.ts 1✅ 910ms
src/lib/middleware/oss-authentication.test.ts 2✅ 7s
src/lib/middleware/pat-middleware.test.ts 5✅ 291ms
src/lib/middleware/rbac-middleware.test.ts 13✅ 2s
src/lib/openapi/index.test.ts 6✅ 1s
src/lib/openapi/meta-schema-rules.test.ts 704✅ 2s
src/lib/openapi/spec/addon-schema.test.ts 1✅ 2s
src/lib/openapi/spec/addons-schema.test.ts 1✅ 3s
src/lib/openapi/spec/admin-features-query-schema.test.ts 3✅ 2s
src/lib/openapi/spec/admin-segment-schema.test.ts 1✅ 2s
src/lib/openapi/spec/admin-strategies-schema.test.ts 1✅ 2s
src/lib/openapi/spec/api-token-schema.test.ts 2✅ 1s
src/lib/openapi/spec/change-password-schema.test.ts 2✅ 2s
src/lib/openapi/spec/client-application-schema.test.ts 5✅ 4s
src/lib/openapi/spec/client-features-query-schema.test.ts 2✅ 3s
src/lib/openapi/spec/client-features-schema.test.ts 5✅ 2s
src/lib/openapi/spec/client-metrics-schema.test.ts 3✅ 2s
src/lib/openapi/spec/constraint-schema.test.ts 3✅ 2s
src/lib/openapi/spec/context-field-schema.test.ts 2✅ 5s
src/lib/openapi/spec/email-schema.test.ts 1✅ 2s
src/lib/openapi/spec/event-schema.test.ts 1✅ 2s
src/lib/openapi/spec/events-schema.test.ts 2✅ 2s
src/lib/openapi/spec/export-query-schema.test.ts 1✅ 2s
src/lib/openapi/spec/export-result-schema.test.ts 1✅ 2s
src/lib/openapi/spec/feature-environment-schema.test.ts 2✅ 6s
src/lib/openapi/spec/feature-events-schema.test.ts 2✅ 3s
src/lib/openapi/spec/feature-metrics-schema.test.ts 1✅ 5s
src/lib/openapi/spec/feature-schema.test.ts 4✅ 2s
src/lib/openapi/spec/feature-type-schema.test.ts 2✅ 3s
src/lib/openapi/spec/feature-usage-schema.test.ts 1✅ 2s
src/lib/openapi/spec/features-schema.test.ts 1✅ 2s
src/lib/openapi/spec/groups-schema.test.ts 1✅ 4s
src/lib/openapi/spec/instance-admin-stats-schema.test.ts 1✅ 2s
src/lib/openapi/spec/me-schema.test.ts 4✅ 2s
src/lib/openapi/spec/playground-feature-schema.test.ts 3✅ 4s
src/lib/openapi/spec/playground-request-schema.test.ts 4✅ 3s
src/lib/openapi/spec/playground-response-schema.test.ts 6✅ 11s
src/lib/openapi/spec/profile-schema.test.ts 1✅ 2s
src/lib/openapi/spec/project-overview-schema.test.ts 1✅ 1s
src/lib/openapi/spec/project-schema.test.ts 2✅ 1s
src/lib/openapi/spec/public-signup-schema.test.ts 1✅ 3s
src/lib/openapi/spec/role-schema.test.ts 1✅ 2s
src/lib/openapi/spec/sdk-context-schema.test.ts 3✅ 2s
src/lib/openapi/spec/segments-schema.test.ts 1✅ 2s
src/lib/openapi/spec/set-strategy-sort-order-schema.test.ts 5✅ 1s
src/lib/openapi/spec/sort-order-schema.test.ts 2✅ 2s
src/lib/openapi/spec/strategy-schema.test.ts 1✅ 2s
src/lib/openapi/spec/tag-types-schema.test.ts 1✅ 3s
src/lib/openapi/spec/tags-bulk-add-schema.test.ts 1✅ 2s
src/lib/openapi/spec/token-user-schema.test.ts 1✅ 2s
src/lib/openapi/spec/ui-config-schema.test.ts 1✅ 2s
src/lib/openapi/spec/update-feature-strategy-segments-schema.test.ts 1✅ 2s
src/lib/openapi/spec/update-tags-schema.test.ts 1✅ 5s
src/lib/openapi/spec/upsert-segment-schema.test.ts 1✅ 2s
src/lib/openapi/spec/user-schema.test.ts 1✅ 4s
src/lib/openapi/spec/users-groups-base-schema.test.ts 1✅ 2s
src/lib/openapi/spec/users-schema.test.ts 1✅ 2s
src/lib/openapi/spec/users-search-schema.test.ts 1✅ 2s
src/lib/openapi/spec/validate-password-schema.test.ts 2✅ 2s
src/lib/openapi/util/create-request-schema.test.ts 1✅ 215ms
src/lib/openapi/util/create-response-schema.test.ts 2✅ 492ms
src/lib/openapi/util/openapi-tags.test.ts 2✅ 163ms
src/lib/openapi/validate.test.ts 1✅ 2s
src/lib/proxy/create-context.test.ts 8✅ 1⚪ 384ms
src/lib/routes/admin-api/config.test.ts 1✅ 5s
src/lib/routes/admin-api/context.test.ts 12✅ 5s
src/lib/routes/admin-api/email.test.ts 3✅ 3s
src/lib/routes/admin-api/events.test.ts 5✅ 4s
src/lib/routes/admin-api/metrics.test.ts 9✅ 5s
src/lib/routes/admin-api/public-signup.test.ts 6✅ 5s
src/lib/routes/admin-api/strategy.test.ts 16✅ 6s
src/lib/routes/admin-api/tag.test.ts 7✅ 4s
src/lib/routes/admin-api/user/user.test.ts 6✅ 7s
src/lib/routes/auth/simple-password-provider.test.ts 3✅ 4s
src/lib/routes/backstage.test.ts 1✅ 15s
src/lib/routes/client-api/metrics.test.ts 12✅ 17s
src/lib/routes/client-api/register.test.ts 6✅ 4s
src/lib/routes/health-check.test.ts 2✅ 9s
src/lib/routes/logout.test.ts 11✅ 2s
src/lib/routes/public-invite.test.ts 7✅ 6s
src/lib/schema/api-token-schema.test.ts 6✅ 408ms
src/lib/schema/constraint-value-types.test.ts 9✅ 480ms
src/lib/schema/feature-schema.test.ts 18✅ 661ms
src/lib/schema/role-schema.test.ts 7✅ 385ms
src/lib/server-impl.test.ts 5✅ 3s
src/lib/services/access-service.test.ts 9✅ 3s
src/lib/services/addon-service.test.ts 22✅ 2s
src/lib/services/api-token-service.test.ts 3✅ 1s
src/lib/services/client-metrics/instance-service.test.ts 1✅ 3❌ 1s
src/lib/services/client-metrics/last-seen/tests/last-seen-mapper.test.ts 1✅ 182ms
src/lib/services/client-metrics/last-seen/tests/last-seen-service.e2e.test.ts 1✅ 5s
src/lib/services/client-metrics/last-seen/tests/last-seen-service.test.ts 2✅ 243ms
src/lib/services/client-metrics/metrics-service-v2.test.ts 3✅ 2s
src/lib/services/client-metrics/schema.test.ts 9✅ 462ms
src/lib/services/client-spec-service.test.ts 2✅ 284ms
src/lib/services/email-service.test.ts 4✅ 327ms
src/lib/services/feature-service-potentially-stale.test.ts 1✅ 974ms
src/lib/services/maintenance-service.test.ts 2✅ 1s
src/lib/services/scheduler-service.test.ts 9✅ 937ms
src/lib/services/state-service.test.ts 30✅ 2s
src/lib/services/tag-schema.test.ts 1✅ 2s
src/lib/services/tag-type-schema.test.ts 3✅ 543ms
src/lib/services/user-service.test.ts 12✅ 4s
src/lib/services/version-service.test.ts 8✅ 2s
src/lib/types/serialize-dates.test.ts 3✅ 189ms
src/lib/types/user.test.ts 7✅ 485ms
src/lib/util/anonymise.test.ts 12✅ 181ms
src/lib/util/anyEventEmitter.test.ts 1✅ 647ms
src/lib/util/arraysHaveSameItems.test.ts 1✅ 242ms
src/lib/util/collapseHourlyMetrics.test.ts 2✅ 409ms
src/lib/util/constantTimeCompare.test.ts 1✅ 237ms
src/lib/util/db-lock.test.ts 3✅ 2s
src/lib/util/ensureStringValue.test.ts 1✅ 112ms
src/lib/util/extract-user.test.ts 4✅ 224ms
src/lib/util/findDuplicates.test.ts 6✅ 265ms
src/lib/util/flag-resolver.test.ts 8✅ 1s
src/lib/util/format-base-uri.test.ts 6✅ 215ms
src/lib/util/is-email.test.ts 36✅ 275ms
src/lib/util/isDefined.test.ts 1✅ 365ms
src/lib/util/map-values.test.ts 1✅ 197ms
src/lib/util/omit-keys.test.ts 1✅ 289ms
src/lib/util/parseEnvVar.test.ts 3✅ 147ms
src/lib/util/rewriteHTML.test.ts 7✅ 372ms
src/lib/util/semver.test.ts 2✅ 424ms
src/lib/util/snakeCase.test.ts 2✅ 256ms
src/lib/util/time-utils.test.ts 1✅ 479ms
src/lib/util/timer.test.ts 2✅ 808ms
src/lib/util/unique.test.ts 1✅ 885ms
src/lib/util/validateJsonString.test.ts 4✅ 368ms
src/lib/util/validateOrigin.test.ts 1✅ 223ms
src/lib/util/validators/constraint-types.test.ts 8✅ 336ms
src/test/arbitraries.test.ts 2✅ 655ms
src/test/config/create-config.test.ts 9✅ 1s
src/test/e2e/api/admin/addon.e2e.test.ts 16✅ 5s
src/test/e2e/api/admin/api-token.auth.e2e.test.ts 18✅ 11s
src/test/e2e/api/admin/api-token.e2e.test.ts 24✅ 7s
src/test/e2e/api/admin/client-metrics.e2e.test.ts 5✅ 6s
src/test/e2e/api/admin/conditional-middleware.e2e.test.ts 4✅ 512ms
src/test/e2e/api/admin/config.e2e.test.ts 4✅ 6s
src/test/e2e/api/admin/constraints.e2e.test.ts 2✅ 6s
src/test/e2e/api/admin/context.e2e.test.ts 18✅ 6s
src/test/e2e/api/admin/environment.test.ts 9✅ 4s
src/test/e2e/api/admin/event.e2e.test.ts 4✅ 6s
src/test/e2e/api/admin/favorites.e2e.test.ts 8✅ 6s
src/test/e2e/api/admin/feature-archive.e2e.test.ts 11✅ 9s
src/test/e2e/api/admin/feature-type.test.ts 6✅ 5s
src/test/e2e/api/admin/feature.auth.e2e.test.ts 2✅ 6s
src/test/e2e/api/admin/feature.custom-auth.e2e.test.ts 2✅ 6s
src/test/e2e/api/admin/feedback.e2e.test.ts 4✅ 5s
src/test/e2e/api/admin/instance-admin.e2e.test.ts 4✅ 6s
src/test/e2e/api/admin/maintenance.e2e.test.ts 4✅ 5s
src/test/e2e/api/admin/metrics.e2e.test.ts 5✅ 6s
src/test/e2e/api/admin/playground.e2e.test.ts 12✅ 10s
src/test/e2e/api/admin/project/api-token.e2e.test.ts 1✅ 7s
src/test/e2e/api/admin/project/environments.e2e.test.ts 7✅ 6s
src/test/e2e/api/admin/project/project.api.tokens.e2e.test.ts 8✅ 5s
src/test/e2e/api/admin/project/project.health.e2e.test.ts 8✅ 8s
src/test/e2e/api/admin/project/projects.e2e.test.ts 6✅ 8s
src/test/e2e/api/admin/project/variants.e2e.test.ts 21✅ 7s
src/test/e2e/api/admin/public-signup-token.e2e.test.ts 6✅ 8s
src/test/e2e/api/admin/segment.e2e.test.ts 15✅ 9s
src/test/e2e/api/admin/splash.e2e.test.ts 2✅ 6s
src/test/e2e/api/admin/state.e2e.test.ts 22✅ 8s
src/test/e2e/api/admin/strategy.e2e.test.ts 15✅ 7s
src/test/e2e/api/admin/tag-types.e2e.test.ts 13✅ 6s
src/test/e2e/api/admin/tags.e2e.test.ts 8✅ 6s
src/test/e2e/api/admin/user-admin.e2e.test.ts 20✅ 14s
src/test/e2e/api/admin/user/pat.e2e.test.ts 15✅ 6s
src/test/e2e/api/admin/user/user.test.ts 2❌ 14s
src/test/e2e/api/auth/leading-slashes-are-stripped.e2e.test.ts 4✅ 5s
src/test/e2e/api/auth/reset-password-controller.e2e.test.ts 9✅ 12s
src/test/e2e/api/auth/simple-password-provider.e2e.test.ts 2✅ 9s
src/test/e2e/api/client/feature.e2e.test.ts 11✅ 7s
src/test/e2e/api/client/feature.env.disabled.e2e.test.ts 2✅ 6s
src/test/e2e/api/client/feature.optimal304.e2e.test.ts 3✅ 5s
src/test/e2e/api/client/feature.token.access.e2e.test.ts 4✅ 6s
src/test/e2e/api/client/metrics.e2e.access.e2e.test.ts 1✅ 6s
src/test/e2e/api/client/metrics.e2e.test.ts 3✅ 6s
src/test/e2e/api/client/metricsV2.e2e.test.ts 5✅ 5s
src/test/e2e/api/client/register.e2e.test.ts 2✅ 1⚪ 7s
src/test/e2e/api/client/segment.e2e.test.ts 15✅ 8s
src/test/e2e/api/openapi/openapi.e2e.test.ts 7✅ 14s
src/test/e2e/api/proxy/proxy.concurrency.e2e.test.ts 1✅ 7s
src/test/e2e/api/proxy/proxy.e2e.test.ts 29✅ 11s
src/test/e2e/custom-auth.test.ts 2✅ 5s
src/test/e2e/health.e2e.test.ts 1✅ 8s
src/test/e2e/migrator.e2e.test.ts 1✅ 6s
src/test/e2e/routes/routes.test.ts 4✅ 7s
src/test/e2e/services/access-service.e2e.test.ts 63✅ 11s
src/test/e2e/services/addon-service.e2e.test.ts 1✅ 4s
src/test/e2e/services/api-token-service.e2e.test.ts 10✅ 6s
src/test/e2e/services/client-metrics-service.e2e.test.ts 2❌ 5s
src/test/e2e/services/environment-service.test.ts 11✅ 3s
src/test/e2e/services/group-service.e2e.test.ts 9✅ 4s
src/test/e2e/services/last-seen-service.e2e.test.ts 3✅ 3s
src/test/e2e/services/playground-service.test.ts 30✅ 57s
src/test/e2e/services/project-health-service.e2e.test.ts 3✅ 4s
src/test/e2e/services/project-service.e2e.test.ts 53✅ 13s
src/test/e2e/services/reset-token-service.e2e.test.ts 6✅ 6s
src/test/e2e/services/session-service.e2e.test.ts 4✅ 4s
src/test/e2e/services/setting-service.test.ts 3✅ 4s
src/test/e2e/services/state-service.e2e.test.ts 5✅ 6s
src/test/e2e/services/user-service.e2e.test.ts 17✅ 8s
src/test/e2e/stores/client-application-store.e2e.test.ts 6✅ 10s
src/test/e2e/stores/client-metrics-store-v2.e2e.test.ts 14✅ 15s
src/test/e2e/stores/context-field-store.e2e.test.ts 2✅ 5s
src/test/e2e/stores/event-store.e2e.test.ts 8✅ 3s
src/test/e2e/stores/feature-environment-store.e2e.test.ts 2✅ 5s
src/test/e2e/stores/feature-tag-store.e2e.test.ts 8✅ 3s
src/test/e2e/stores/feature-toggle-client-store.e2e.test.ts 1✅ 4s
src/test/e2e/stores/feature-type-store.e2e.test.ts 7✅ 4s
src/test/e2e/stores/project-store.e2e.test.ts 7✅ 3s
src/test/e2e/stores/setting-store.e2e.test.ts 7✅ 3s
src/test/e2e/stores/user-feedback-store.e2e.test.ts 5✅ 4s
src/test/e2e/stores/user-splash-store.e2e.test.ts 5✅ 3s
src/test/e2e/stores/user-store.e2e.test.ts 15✅ 4s

❌ src/lib/services/client-metrics/instance-service.test.ts

-Multiple registrations of same appname and instanceid within same time period should only cause one registration
  ❌ -Multiple registrations of same appname and instanceid within same time period should only cause one registration
	Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
-Multiple unique clients causes multiple registrations
  ❌ -Multiple unique clients causes multiple registrations
	TypeError: Cannot read properties of undefined (reading '0')
-Same client registered outside of dedup interval will be registered twice
  ❌ -Same client registered outside of dedup interval will be registered twice
	Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
-No registrations during a time period will not call stores
  ✅ -No registrations during a time period will not call stores

❌ src/test/e2e/api/admin/user/user.test.ts

-Should get my user data
  ❌ -Should get my user data
	Error: thrown: "Exceeded timeout of 10000 ms for a hook.
-Test execution failure: could be caused by test hooks like 'afterAll'.
  ❌ -Test execution failure: could be caused by test hooks like 'afterAll'.
	{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'destroy')\n    at Object.destroy (/home/runner/work/unleash/unleash/src/test/e2e/api/admin/user/user.test.ts:16:15)\n    at Promise.then.completed (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:298:28)\n    at new Promise (<anonymous>)\n    at callAsyncCircusFn (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:231:10)\n    at _callCircusHook (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:281:40)\n    at _runTestsForDescribeBlock (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:154:7)\n    at run (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:71:3)\n    at runAndTransformResultsToJestFormat (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n    at jestAdapter (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n    at runTestInternal (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:367:16)\n    at runTest (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:444:34)\n    at Object.worker (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/testWorker.js:106:12)"}

❌ src/test/e2e/services/client-metrics-service.e2e.test.ts

-Apps registered should be announced
  ❌ -Apps registered should be announced
	Error: expect(received).toBe(expected) // Object.is equality
-Test execution failure: could be caused by test hooks like 'afterAll'.
  ❌ -Test execution failure: could be caused by test hooks like 'afterAll'.
	{"message":"","stack":"TypeError: clientInstanceService.destroy is not a function\n    at Object.destroy (/home/runner/work/unleash/unleash/src/test/e2e/services/client-metrics-service.e2e.test.ts:34:33)\n    at Promise.then.completed (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:298:28)\n    at new Promise (<anonymous>)\n    at callAsyncCircusFn (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:231:10)\n    at _callCircusHook (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:281:40)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at _runTestsForDescribeBlock (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:154:7)\n    at run (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:71:3)\n    at runAndTransformResultsToJestFormat (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n    at jestAdapter (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n    at runTestInternal (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:367:16)\n    at runTest (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:444:34)\n    at Object.worker (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/testWorker.js:106:12)"}

Annotations

Check failure on line 81 in src/lib/services/client-metrics/instance-service.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/services/client-metrics/instance-service.test.ts ► -Multiple registrations of same appname and instanceid within same time period should only cause one registration ► -Multiple registrations of same appname and instanceid within same time perio...

Failed test found in:
  jest-junit.xml
Error:
  Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Raw output
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)

Expected number of calls: 1
Received number of calls: 0
    at Object.toHaveBeenCalledTimes (/home/runner/work/unleash/unleash/src/lib/services/client-metrics/instance-service.test.ts:81:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 142 in src/lib/services/client-metrics/instance-service.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/services/client-metrics/instance-service.test.ts ► -Multiple unique clients causes multiple registrations ► -Multiple unique clients causes multiple registrations

Failed test found in:
  jest-junit.xml
Error:
  TypeError: Cannot read properties of undefined (reading '0')
Raw output
TypeError: Cannot read properties of undefined (reading '0')
    at Object.<anonymous> (/home/runner/work/unleash/unleash/src/lib/services/client-metrics/instance-service.test.ts:142:52)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 193 in src/lib/services/client-metrics/instance-service.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/lib/services/client-metrics/instance-service.test.ts ► -Same client registered outside of dedup interval will be registered twice ► -Same client registered outside of dedup interval will be registered twice

Failed test found in:
  jest-junit.xml
Error:
  Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Raw output
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)

Expected number of calls: 2
Received number of calls: 0
    at Object.toHaveBeenCalledTimes (/home/runner/work/unleash/unleash/src/lib/services/client-metrics/instance-service.test.ts:193:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 10 in src/test/e2e/api/admin/user/user.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/test/e2e/api/admin/user/user.test.ts ► -Should get my user data ► -Should get my user data

Failed test found in:
  jest-junit.xml
Error:
  Error: thrown: "Exceeded timeout of 10000 ms for a hook.
Raw output
Error: thrown: "Exceeded timeout of 10000 ms for a hook.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
    at Object.beforeAll (/home/runner/work/unleash/unleash/src/test/e2e/api/admin/user/user.test.ts:10:1)
    at Runtime._execModule (/home/runner/work/unleash/unleash/node_modules/jest-runtime/build/index.js:1439:24)
    at Runtime._loadModule (/home/runner/work/unleash/unleash/node_modules/jest-runtime/build/index.js:1022:12)
    at Runtime.requireModule (/home/runner/work/unleash/unleash/node_modules/jest-runtime/build/index.js:882:12)
    at jestAdapter (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runTestInternal (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 0 in jest-junit.xml

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/test/e2e/api/admin/user/user.test.ts ► -Test execution failure: could be caused by test hooks like 'afterAll'. ► -Test execution failure: could be caused by test hooks like 'afterAll'.

Failed test found in:
  jest-junit.xml
Error:
  {"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'destroy')\n    at Object.destroy (/home/runner/work/unleash/unleash/src/test/e2e/api/admin/user/user.test.ts:16:15)\n    at Promise.then.completed (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:298:28)\n    at new Promise (<anonymous>)\n    at callAsyncCircusFn (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:231:10)\n    at _callCircusHook (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:281:40)\n    at _runTestsForDescribeBlock (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:154:7)\n    at run (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:71:3)\n    at runAndTransformResultsToJestFormat (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n    at jestAdapter (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n    at runTestInternal (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:367:16)\n    at runTest (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:444:34)\n    at Object.worker (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/testWorker.js:106:12)"}
Raw output
{"message":"","stack":"TypeError: Cannot read properties of undefined (reading 'destroy')\n    at Object.destroy (/home/runner/work/unleash/unleash/src/test/e2e/api/admin/user/user.test.ts:16:15)\n    at Promise.then.completed (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:298:28)\n    at new Promise (<anonymous>)\n    at callAsyncCircusFn (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:231:10)\n    at _callCircusHook (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:281:40)\n    at _runTestsForDescribeBlock (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:154:7)\n    at run (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:71:3)\n    at runAndTransformResultsToJestFormat (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n    at jestAdapter (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n    at runTestInternal (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:367:16)\n    at runTest (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:444:34)\n    at Object.worker (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/testWorker.js:106:12)"}

Check failure on line 63 in src/test/e2e/services/client-metrics-service.e2e.test.ts

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/test/e2e/services/client-metrics-service.e2e.test.ts ► -Apps registered should be announced ► -Apps registered should be announced

Failed test found in:
  jest-junit.xml
Error:
  Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality

Expected: 2
Received: 0
    at Object.toBe (/home/runner/work/unleash/unleash/src/test/e2e/services/client-metrics-service.e2e.test.ts:63:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in jest-junit.xml

See this annotation in the file changed.

@github-actions github-actions / Unit Tests

src/test/e2e/services/client-metrics-service.e2e.test.ts ► -Test execution failure: could be caused by test hooks like 'afterAll'. ► -Test execution failure: could be caused by test hooks like 'afterAll'.

Failed test found in:
  jest-junit.xml
Error:
  {"message":"","stack":"TypeError: clientInstanceService.destroy is not a function\n    at Object.destroy (/home/runner/work/unleash/unleash/src/test/e2e/services/client-metrics-service.e2e.test.ts:34:33)\n    at Promise.then.completed (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:298:28)\n    at new Promise (<anonymous>)\n    at callAsyncCircusFn (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:231:10)\n    at _callCircusHook (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:281:40)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at _runTestsForDescribeBlock (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:154:7)\n    at run (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:71:3)\n    at runAndTransformResultsToJestFormat (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n    at jestAdapter (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n    at runTestInternal (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:367:16)\n    at runTest (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:444:34)\n    at Object.worker (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/testWorker.js:106:12)"}
Raw output
{"message":"","stack":"TypeError: clientInstanceService.destroy is not a function\n    at Object.destroy (/home/runner/work/unleash/unleash/src/test/e2e/services/client-metrics-service.e2e.test.ts:34:33)\n    at Promise.then.completed (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:298:28)\n    at new Promise (<anonymous>)\n    at callAsyncCircusFn (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/utils.js:231:10)\n    at _callCircusHook (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:281:40)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at _runTestsForDescribeBlock (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:154:7)\n    at run (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/run.js:71:3)\n    at runAndTransformResultsToJestFormat (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)\n    at jestAdapter (/home/runner/work/unleash/unleash/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)\n    at runTestInternal (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:367:16)\n    at runTest (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/runTest.js:444:34)\n    at Object.worker (/home/runner/work/unleash/unleash/node_modules/jest-runner/build/testWorker.js:106:12)"}