From 973aa550d26baee352ce22d3356a3429493f3952 Mon Sep 17 00:00:00 2001 From: Mark Doliner Date: Fri, 3 Jun 2022 15:25:22 -0400 Subject: [PATCH] Fix spelling of dropping. --- src/logger/messages/warn.ts | 2 +- src/storages/inRedis/__tests__/EventsCacheInRedis.spec.ts | 2 +- src/storages/inRedis/__tests__/ImpressionsCacheInRedis.spec.ts | 2 +- src/storages/pluggable/__tests__/EventsCachePluggable.spec.ts | 2 +- .../pluggable/__tests__/ImpressionsCachePluggable.spec.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/logger/messages/warn.ts b/src/logger/messages/warn.ts index d820413d..3b3f984e 100644 --- a/src/logger/messages/warn.ts +++ b/src/logger/messages/warn.ts @@ -11,7 +11,7 @@ export const codesWarn: [number, string][] = codesError.concat([ [c.STREAMING_PARSING_ERROR_FAILS, c.LOG_PREFIX_SYNC_STREAMING + 'Error parsing SSE error notification: %s'], [c.STREAMING_PARSING_MESSAGE_FAILS, c.LOG_PREFIX_SYNC_STREAMING + 'Error parsing SSE message notification: %s'], [c.STREAMING_FALLBACK, c.LOG_PREFIX_SYNC_STREAMING + 'Falling back to polling mode. Reason: %s'], - [c.SUBMITTERS_PUSH_FAILS, c.LOG_PREFIX_SYNC_SUBMITTERS + 'Droping %s after retry. Reason: %s.'], + [c.SUBMITTERS_PUSH_FAILS, c.LOG_PREFIX_SYNC_SUBMITTERS + 'Dropping %s after retry. Reason: %s.'], [c.SUBMITTERS_PUSH_RETRY, c.LOG_PREFIX_SYNC_SUBMITTERS + 'Failed to push %s, keeping data to retry on next iteration. Reason: %s.'], // client status [c.CLIENT_NOT_READY, '%s: the SDK is not ready, results may be incorrect. Make sure to wait for SDK readiness before using this method.'], diff --git a/src/storages/inRedis/__tests__/EventsCacheInRedis.spec.ts b/src/storages/inRedis/__tests__/EventsCacheInRedis.spec.ts index 9d648feb..e9d1ddd3 100644 --- a/src/storages/inRedis/__tests__/EventsCacheInRedis.spec.ts +++ b/src/storages/inRedis/__tests__/EventsCacheInRedis.spec.ts @@ -50,7 +50,7 @@ test('EVENTS CACHE IN REDIS / `track`, `count`, `popNWithMetadata` and `drop` me await Promise.all([cache.track(fakeEvent1), cache.track(fakeEvent2), cache.track(fakeEvent3)]); expect(await cache.count()).toBe(3); await cache.drop(); - expect(await cache.count()).toBe(0); // storage should be empty after droping it + expect(await cache.count()).toBe(0); // storage should be empty after dropping it // Clean up then end. await connection.del(eventsKey, nonListKey); diff --git a/src/storages/inRedis/__tests__/ImpressionsCacheInRedis.spec.ts b/src/storages/inRedis/__tests__/ImpressionsCacheInRedis.spec.ts index 8dcd1398..27460b34 100644 --- a/src/storages/inRedis/__tests__/ImpressionsCacheInRedis.spec.ts +++ b/src/storages/inRedis/__tests__/ImpressionsCacheInRedis.spec.ts @@ -41,7 +41,7 @@ describe('IMPRESSIONS CACHE IN REDIS', () => { await c.track([o1, o2, o3]); expect(await c.count()).toBe(3); await c.drop(); - expect(await c.count()).toBe(0); // storage should be empty after droping it + expect(await c.count()).toBe(0); // storage should be empty after dropping it await connection.del(impressionsKey); await connection.quit(); diff --git a/src/storages/pluggable/__tests__/EventsCachePluggable.spec.ts b/src/storages/pluggable/__tests__/EventsCachePluggable.spec.ts index 09d8c84a..7d44164d 100644 --- a/src/storages/pluggable/__tests__/EventsCachePluggable.spec.ts +++ b/src/storages/pluggable/__tests__/EventsCachePluggable.spec.ts @@ -47,7 +47,7 @@ describe('PLUGGABLE EVENTS CACHE', () => { await Promise.all([cache.track(fakeEvent1), cache.track(fakeEvent2), cache.track(fakeEvent3)]); expect(await cache.count()).toBe(3); await cache.drop(); - expect(await cache.count()).toBe(0); // storage should be empty after droping it + expect(await cache.count()).toBe(0); // storage should be empty after dropping it wrapperMock.mockClear(); }); diff --git a/src/storages/pluggable/__tests__/ImpressionsCachePluggable.spec.ts b/src/storages/pluggable/__tests__/ImpressionsCachePluggable.spec.ts index d978be1b..4f1c794e 100644 --- a/src/storages/pluggable/__tests__/ImpressionsCachePluggable.spec.ts +++ b/src/storages/pluggable/__tests__/ImpressionsCachePluggable.spec.ts @@ -86,7 +86,7 @@ describe('PLUGGABLE IMPRESSIONS CACHE', () => { await cache.track([o1, o2, o3]); expect(await cache.count()).toBe(3); await cache.drop(); - expect(await cache.count()).toBe(0); // storage should be empty after droping it + expect(await cache.count()).toBe(0); // storage should be empty after dropping it });