diff --git a/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs b/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs
index b03dca76b..db569cd2e 100644
--- a/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs
+++ b/src/EntityFramework.Storage/Stores/ServerSideSessionStore.cs
@@ -262,7 +262,7 @@ public virtual async Task DeleteSessionsAsync(SessionFilter filter, Cancellation
///
- public async Task> GetAndRemoveExpiredSessionsAsync(int count, CancellationToken cancellationToken = default)
+ public virtual async Task> GetAndRemoveExpiredSessionsAsync(int count, CancellationToken cancellationToken = default)
{
using var activity = Tracing.StoreActivitySource.StartActivity("ServerSideSessionStore.GetAndRemoveExpiredSessions");