@@ -169,9 +169,8 @@ var runAsimTests = envutil.EnvOrDefaultBool("COCKROACH_RUN_ASIM_TESTS", false)
169169//
170170// To run all tests and rewrite the testdata files as well as generate the
171171// artifacts in `testdata/generated`, you can use:
172- // ./dev test pkg/kv/kvserver/asim/tests --ignore-cache --rewrite -v -f
173- // TestDataDriven -- --test_env COCKROACH_RUN_ASIM_TESTS=true --test_env
174- // COCKROACH_ALWAYS_KEEP_TEST_LOGS=true
172+ // ./dev test pkg/kv/kvserver/asim/tests --ignore-cache --rewrite -v -f TestDataDriven -- --test_env COCKROACH_RUN_ASIM_TESTS=true --test_env
173+ // COCKROACH_ALWAYS_KEEP_TEST_LOGS=true */
175174func TestDataDriven (t * testing.T ) {
176175 skip .UnderDuressWithIssue (t , 149875 )
177176 leakTestAfter := leaktest .AfterTest (t )
@@ -185,8 +184,6 @@ func TestDataDriven(t *testing.T) {
185184 scope .Close (t )
186185 leakTestAfter ()
187186 })
188- defer setAllocatorDebugVModule (t )()
189-
190187 testutils .RunValues (t , "mode" , []string {"sma" , "mma" }, func (t * testing.T , mode string ) {
191188 dir := datapathutils .TestDataPath (t , "non_rand" , mode )
192189 datadriven .Walk (t , dir , func (t * testing.T , path string ) {
@@ -747,12 +744,3 @@ func writeStateStrToFile(t *testing.T, topFile string, stateStr string, rewrite
747744 require .NoError (t , os .WriteFile (topFile , []byte (stateStr ), 0644 ))
748745 }
749746}
750-
751- func setAllocatorDebugVModule (t * testing.T ) (reset func ()) {
752- t .Helper ()
753- old := log .GetVModule ()
754- require .NoError (t , log .SetVModule (
755- "replicate_queue=5,store_rebalancer=5,lease_queue=5,split_queue=5,load=5,allocator=5,allocator_scorer=5," +
756- "replica_command=5,allocator_state=5,cluster_state=5,allocator_sync=5" ))
757- return func () { require .NoError (t , log .SetVModule (old )) }
758- }
0 commit comments