@@ -169,9 +169,8 @@ var runAsimTests = envutil.EnvOrDefaultBool("COCKROACH_RUN_ASIM_TESTS", false)
169
169
//
170
170
// To run all tests and rewrite the testdata files as well as generate the
171
171
// 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 */
175
174
func TestDataDriven (t * testing.T ) {
176
175
skip .UnderDuressWithIssue (t , 149875 )
177
176
leakTestAfter := leaktest .AfterTest (t )
@@ -185,8 +184,6 @@ func TestDataDriven(t *testing.T) {
185
184
scope .Close (t )
186
185
leakTestAfter ()
187
186
})
188
- defer setAllocatorDebugVModule (t )()
189
-
190
187
testutils .RunValues (t , "mode" , []string {"sma" , "mma" }, func (t * testing.T , mode string ) {
191
188
dir := datapathutils .TestDataPath (t , "non_rand" , mode )
192
189
datadriven .Walk (t , dir , func (t * testing.T , path string ) {
@@ -747,12 +744,3 @@ func writeStateStrToFile(t *testing.T, topFile string, stateStr string, rewrite
747
744
require .NoError (t , os .WriteFile (topFile , []byte (stateStr ), 0644 ))
748
745
}
749
746
}
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