Skip to content

Commit aed0b5c

Browse files
committed
asim: better log tag
1 parent e59a556 commit aed0b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvserver/asim/tests/datadriven_simulation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ func TestDataDriven(t *testing.T) {
180180
leakTestAfter()
181181
})
182182
datadriven.Walk(t, dir, func(t *testing.T, path string) {
183-
ctx := logtags.AddTag(context.Background(), "name", filepath.Base(path))
184183
// The inline comment below is required for TestLint/TestTParallel.
185184
// We use t.Cleanup to work around the issue this lint is trying to prevent.
186185
t.Parallel() // SAFE FOR TESTING
@@ -509,6 +508,7 @@ func TestDataDriven(t *testing.T) {
509508
var buf strings.Builder
510509
for _, mv := range cfgs {
511510
t.Run(mv, func(t *testing.T) {
511+
ctx := logtags.AddTag(context.Background(), "name", name+"/"+mv)
512512
sampleAssertFailures := make([]string, samples)
513513
run := modeHistory{
514514
mode: mv,

0 commit comments

Comments
 (0)