From fe9051346abc1f9b9207ad5c5faf0adadac7e75c Mon Sep 17 00:00:00 2001 From: Jonathan Gillespie Date: Tue, 15 Oct 2024 23:33:27 -0400 Subject: [PATCH] [WIP] --- .../logger-engine/classes/LoggerEngineDataSelector_Tests.cls | 4 ++-- .../tests/logger-engine/classes/LoggerSObjectProxy_Tests.cls | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nebula-logger/core/tests/logger-engine/classes/LoggerEngineDataSelector_Tests.cls b/nebula-logger/core/tests/logger-engine/classes/LoggerEngineDataSelector_Tests.cls index 7419b96f1..9f34f6b28 100644 --- a/nebula-logger/core/tests/logger-engine/classes/LoggerEngineDataSelector_Tests.cls +++ b/nebula-logger/core/tests/logger-engine/classes/LoggerEngineDataSelector_Tests.cls @@ -165,9 +165,9 @@ private class LoggerEngineDataSelector_Tests { LoggerSObjectProxy.Network returnedNetworkProxy = LoggerEngineDataSelector.getInstance().getCachedNetworkProxy(mockNetworkProxy.Id); System.Assert.isNotNull(returnedNetworkProxy); - System.Assert.areEqual(0, System.Limits.getQueries()); + System.Assert.areEqual(1, System.Limits.getQueries(), 'Query should still be executed, even when using mock records'); LoggerEngineDataSelector.getInstance().getCachedNetworkProxy(mockNetworkProxy.Id); - System.Assert.areEqual(0, System.Limits.getQueries(), 'Query results should have been cached'); + System.Assert.areEqual(1, System.Limits.getQueries(), 'Query results should have been cached'); System.Assert.areEqual(mockNetworkProxy.Id, returnedNetworkProxy.Id); System.Assert.areEqual(mockNetworkProxy.Name, returnedNetworkProxy.Name); System.Assert.areEqual(mockNetworkProxy.UrlPathPrefix, returnedNetworkProxy.UrlPathPrefix); diff --git a/nebula-logger/core/tests/logger-engine/classes/LoggerSObjectProxy_Tests.cls b/nebula-logger/core/tests/logger-engine/classes/LoggerSObjectProxy_Tests.cls index 59323dda8..dd62e44ce 100644 --- a/nebula-logger/core/tests/logger-engine/classes/LoggerSObjectProxy_Tests.cls +++ b/nebula-logger/core/tests/logger-engine/classes/LoggerSObjectProxy_Tests.cls @@ -123,7 +123,7 @@ private class LoggerSObjectProxy_Tests { return; } List omniProcessRecords = System.Database.query( - 'SELECT SELECT CreatedBy.Username, CreatedById, CreatedDate, Id, IsIntegrationProcedure, LastModifiedBy.Username,' + + 'SELECT CreatedBy.Username, CreatedById, CreatedDate, Id, IsIntegrationProcedure, LastModifiedBy.Username,' + ' LastModifiedById, LastModifiedDate, OmniProcessType, UniqueName' + ' FROM OmniProcess LIMIT 3' );