From 012539a0e7fe3c72b8cf9d9d6cd757775c5729b6 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Thu, 29 Jun 2023 22:26:53 +0300 Subject: [PATCH] Update pageserver/src/tenant/mgr.rs Co-authored-by: Joonas Koivunen --- pageserver/src/tenant/mgr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pageserver/src/tenant/mgr.rs b/pageserver/src/tenant/mgr.rs index 751769f62e..91814afe40 100644 --- a/pageserver/src/tenant/mgr.rs +++ b/pageserver/src/tenant/mgr.rs @@ -633,12 +633,12 @@ pub enum TenantMapListError { /// /// Get list of tenants, for the mgmt API /// -#[cfg(feature = "testing")] // Many tests are using list_tenants to check if tenant is in active state // With lazy loading tenants are initially in NotLoaded state. // To make all this tests pass, lets force loading of tenants if testing feature is specified. // Alternatively it is possible to pass extra parameter to list_tenants to choose between // eager and lazy loading of tenants. +#[cfg(feature = "testing")] pub async fn list_tenants() -> Result, TenantMapListError> { let tenants = TENANTS.read().await; match &*tenants {