@@ -85,8 +85,8 @@ key-path = "ngm.key"`
8585 require .NotNil (t , cfg )
8686 data , err := json .Marshal (cfg )
8787 require .NoError (t , err )
88- // TODO(mornyx): Rollback when tiflash#5285 is fixed.
89- require .Equal (t , `{"address":"0.0.0.0:12020","advertise_address":"10.0.1.8:12020","pd":{"endpoints":["10.0.1.8:2379"]},"log":{"path":"log","level":"INFO"},"storage":{"path":"data"},"continuous_profiling":{"enable":false,"profile_seconds":10,"interval_seconds":60,"timeout_seconds":120,"data_retention_seconds":259200},"security":{"ca_path":"ngm.ca","cert_path":"ngm.cert","key_path":"ngm.key"}}` , string (data ))
88+ // TODO(mornyx): Rollback when tiflash#5687 is fixed.
89+ require .Equal (t , `{"address":"0.0.0.0:12020","advertise_address":"10.0.1.8:12020","pd":{"endpoints":["10.0.1.8:2379"]},"log":{"path":"log","level":"INFO"},"storage":{"path":"data"},"continuous_profiling":{"enable":false,"profile_seconds":10,"interval_seconds":60,"timeout_seconds":120,"data_retention_seconds":259200},"security":{"ca_path":"ngm.ca","cert_path":"ngm.cert","key_path":"ngm.key"},"tsdb":{"retention_period":"1","search_max_unique_timeseries":300000} }` , string (data ))
9090
9191 ctx , cancel := context .WithCancel (context .Background ())
9292 defer cancel ()
@@ -113,8 +113,8 @@ path = "data1"`
113113 require .Equal (t , getCfg (), globalCfg )
114114 data , err = json .Marshal (globalCfg )
115115 require .NoError (t , err )
116- // TODO(mornyx): Rollback when tiflash#5285 is fixed.
117- require .Equal (t , `{"address":"0.0.0.0:12020","advertise_address":"10.0.1.8:12020","pd":{"endpoints":["10.0.1.8:2378","10.0.1.9:2379"]},"log":{"path":"log","level":"INFO"},"storage":{"path":"data"},"continuous_profiling":{"enable":false,"profile_seconds":10,"interval_seconds":60,"timeout_seconds":120,"data_retention_seconds":259200},"security":{"ca_path":"ngm.ca","cert_path":"ngm.cert","key_path":"ngm.key"}}` , string (data ))
116+ // TODO(mornyx): Rollback when tiflash#5687 is fixed.
117+ require .Equal (t , `{"address":"0.0.0.0:12020","advertise_address":"10.0.1.8:12020","pd":{"endpoints":["10.0.1.8:2378","10.0.1.9:2379"]},"log":{"path":"log","level":"INFO"},"storage":{"path":"data"},"continuous_profiling":{"enable":false,"profile_seconds":10,"interval_seconds":60,"timeout_seconds":120,"data_retention_seconds":259200},"security":{"ca_path":"ngm.ca","cert_path":"ngm.cert","key_path":"ngm.key"},"tsdb":{"retention_period":"1","search_max_unique_timeseries":300000} }` , string (data ))
118118
119119 cfgData = ``
120120 err = ioutil .WriteFile (cfgFileName , []byte (cfgData ), 0666 )
@@ -124,8 +124,8 @@ path = "data1"`
124124 time .Sleep (time .Millisecond * 10 )
125125 data , err = json .Marshal (GetGlobalConfig ())
126126 require .NoError (t , err )
127- // TODO(mornyx): Rollback when tiflash#5285 is fixed.
128- require .Equal (t , `{"address":"0.0.0.0:12020","advertise_address":"10.0.1.8:12020","pd":{"endpoints":["10.0.1.8:2378","10.0.1.9:2379"]},"log":{"path":"log","level":"INFO"},"storage":{"path":"data"},"continuous_profiling":{"enable":false,"profile_seconds":10,"interval_seconds":60,"timeout_seconds":120,"data_retention_seconds":259200},"security":{"ca_path":"ngm.ca","cert_path":"ngm.cert","key_path":"ngm.key"}}` , string (data ))
127+ // TODO(mornyx): Rollback when tiflash#5687 is fixed.
128+ require .Equal (t , `{"address":"0.0.0.0:12020","advertise_address":"10.0.1.8:12020","pd":{"endpoints":["10.0.1.8:2378","10.0.1.9:2379"]},"log":{"path":"log","level":"INFO"},"storage":{"path":"data"},"continuous_profiling":{"enable":false,"profile_seconds":10,"interval_seconds":60,"timeout_seconds":120,"data_retention_seconds":259200},"security":{"ca_path":"ngm.ca","cert_path":"ngm.cert","key_path":"ngm.key"},"tsdb":{"retention_period":"1","search_max_unique_timeseries":300000} }` , string (data ))
129129}
130130
131131func TestConfigValid (t * testing.T ) {
0 commit comments