From c6f817eb66fe81b4101a6fc29b4b4e3e1d337067 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Mon, 13 Jan 2025 12:04:39 -0800 Subject: [PATCH] add experimental-corrupt-check-time into testcase TestConfigFileDeprecatedOptions Signed-off-by: Gang Li --- server/etcdmain/config_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/etcdmain/config_test.go b/server/etcdmain/config_test.go index 62c0f2ae4fb..85cdc69eb08 100644 --- a/server/etcdmain/config_test.go +++ b/server/etcdmain/config_test.go @@ -752,6 +752,7 @@ func TestConfigFileDeprecatedOptions(t *testing.T) { ExperimentalCompactHashCheckEnabled bool `json:"experimental-compact-hash-check-enabled,omitempty"` ExperimentalCompactHashCheckTime time.Duration `json:"experimental-compact-hash-check-time,omitempty"` ExperimentalWarningUnaryRequestDuration time.Duration `json:"experimental-warning-unary-request-duration,omitempty"` + ExperimentalCorruptCheckTime time.Duration `json:"experimental-corrupt-check-time,omitempty"` } testCases := []struct { @@ -770,10 +771,12 @@ func TestConfigFileDeprecatedOptions(t *testing.T) { ExperimentalCompactHashCheckEnabled: true, ExperimentalCompactHashCheckTime: 2 * time.Minute, ExperimentalWarningUnaryRequestDuration: time.Second, + ExperimentalCorruptCheckTime: time.Minute, }, expectedFlags: map[string]struct{}{ "experimental-compact-hash-check-enabled": {}, "experimental-compact-hash-check-time": {}, + "experimental-corrupt-check-time": {}, }, }, {