From 6f30d03e28954fd1d363a7d449d23353013167eb Mon Sep 17 00:00:00 2001 From: SoftFever Date: Thu, 16 Jul 2026 21:40:21 +0800 Subject: [PATCH] fix test errors --- tests/slic3rutils/test_plugin_install.cpp | 2 +- tests/slic3rutils/test_plugin_lifecycle.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/slic3rutils/test_plugin_install.cpp b/tests/slic3rutils/test_plugin_install.cpp index 1b47454691..5c6e902450 100644 --- a/tests/slic3rutils/test_plugin_install.cpp +++ b/tests/slic3rutils/test_plugin_install.cpp @@ -135,7 +135,7 @@ TEST_CASE("install-state sidecar is the source of truth for a cloud plugin's ins CHECK(state.installed_version == "1.2.0"); // Reading the sidecar back onto a freshly-scanned descriptor (whose header version is still - // 1.0.0) must surface the cloud-installed 1.2.0. This is what lets update_cloud_catalog compare + // 1.0.0) must surface the cloud-installed 1.2.0. This is what lets update_cloud_metadata compare // the cloud's latest version against the installed version instead of the stale header, so an // already-updated plugin no longer looks perpetually out of date. PluginDescriptor scanned; diff --git a/tests/slic3rutils/test_plugin_lifecycle.cpp b/tests/slic3rutils/test_plugin_lifecycle.cpp index 278740c24b..f26af930b5 100644 --- a/tests/slic3rutils/test_plugin_lifecycle.cpp +++ b/tests/slic3rutils/test_plugin_lifecycle.cpp @@ -725,7 +725,7 @@ TEST_CASE("Signing out drops every cloud plugin row, installed or not", "[Plugin installed.plugin_root = (data_dir_guard.plugins_dir() / "_subscribed" / "user" / installed.plugin_key).string(); installed.cloud = CloudPluginState{installed.plugin_key, /*installed=*/true, false, false, false}; - manager.update_cloud_catalog({available, installed}); + manager.update_cloud_metadata({available, installed}); const auto has_key = [&manager](const std::string& key) { PluginDescriptor descriptor; @@ -739,7 +739,7 @@ TEST_CASE("Signing out drops every cloud plugin row, installed or not", "[Plugin // Sign out. The per-user _subscribed directory stops being scanned, so both cloud rows are now // stale and must go — not just the one with nothing installed behind it. manager.unload_cloud_plugins(); - manager.clear_cloud_plugin_catalog(); + manager.clear_cloud_plugin_metadata(); manager.set_cloud_user(""); CHECK_FALSE(has_key(available.plugin_key));