Fix rare flakiness of test_metrics_config
@@ -40,6 +40,7 @@ def test_kv_store_metrics_config(looper, txnPoolNodeSet, tdir, tconf, sdk_pool_h
# We don't expect some events in this test
unexpected_events = {
MetricsName.GC_UNCOLLECTABLE_OBJECTS,
+ MetricsName.GC_GEN2_COLLECTED_OBJECTS,
MetricsName.PROCESS_CHECKPOINT_TIME,
MetricsName.SEND_CHECKPOINT_TIME,
