From dc04dfffbc3c3ffae9e41cee942fa884a6348f50 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Wed, 29 May 2024 05:59:58 -0400 Subject: [PATCH] fix: Remove flaky time test --- query-creator/create-query/tests/unit/generated-sql.js | 4 ++-- query-creator/create-query/tests/unit/test-handler.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/query-creator/create-query/tests/unit/generated-sql.js b/query-creator/create-query/tests/unit/generated-sql.js index 20125e6..f5ba9d7 100644 --- a/query-creator/create-query/tests/unit/generated-sql.js +++ b/query-creator/create-query/tests/unit/generated-sql.js @@ -819,7 +819,7 @@ FROM ` exports.expectedUserLogSQLresult = ` --- name log.username IN ('1@example.com', '2@example.com') AND log.activity IN ('activity-1', 'activity-2') AND time >= 1704171600 AND time <= 1709528400 +-- name log.username IN ('1@example.com', '2@example.com') AND log.activity IN ('activity-1', 'activity-2') -- type user event log -- reportType user-event-log -- usernames: ["1@example.com","2@example.com"] @@ -827,7 +827,7 @@ exports.expectedUserLogSQLresult = ` SELECT * FROM "undefined"."logs_by_time" log -WHERE log.username IN ('1@example.com', '2@example.com') AND log.activity IN ('activity-1', 'activity-2') AND time >= 1704171600 AND time <= 1709528400 +WHERE log.username IN ('1@example.com', '2@example.com') AND log.activity IN ('activity-1', 'activity-2') ` exports.expectedNarrowLearnerLogWithNamesSqlResult = ` diff --git a/query-creator/create-query/tests/unit/test-handler.js b/query-creator/create-query/tests/unit/test-handler.js index 90a6697..6b022bb 100644 --- a/query-creator/create-query/tests/unit/test-handler.js +++ b/query-creator/create-query/tests/unit/test-handler.js @@ -244,7 +244,7 @@ describe('Query creation unreportable runnable', function () { describe('Query creation for log data', function () { it('verifies successful query creation of user log data', async () => { - const generatedSQLresult = await aws.generateUserLogSQL(["1@example.com", "2@example.com"], ["activity-1", "activity-2"], "1/2/2024", "3/4/2024"); + const generatedSQLresult = await aws.generateUserLogSQL(["1@example.com", "2@example.com"], ["activity-1", "activity-2"]); const normalizedGeneratedSQLresult = normalizeSQL(generatedSQLresult); const normalizedExpectedSQLresult = normalizeSQL(expectedUserLogSQLresult); expect(normalizedGeneratedSQLresult).to.be.equal(normalizedExpectedSQLresult);