Skip to content

Commit 7dfca80

Browse files
committed
mmaprototype: rename file to be testname
1 parent 6411371 commit 7dfca80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/kv/kvserver/allocator/mmaprototype/constraint_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ import (
99
"fmt"
1010
"math"
1111
"math/rand"
12+
"path/filepath"
1213
"strconv"
1314
"strings"
1415
"testing"
1516

1617
"github.com/cockroachdb/cockroach/pkg/roachpb"
18+
"github.com/cockroachdb/cockroach/pkg/testutils/datapathutils"
1719
"github.com/cockroachdb/cockroach/pkg/testutils/dd"
1820
"github.com/cockroachdb/datadriven"
1921
"github.com/cockroachdb/errors"
@@ -884,7 +886,7 @@ func TestDiversityScore(t *testing.T) {
884886
// building of relationships between voter and all replica constraints.
885887
func TestNormalizedVoterAllRelationships(t *testing.T) {
886888
interner := newStringInterner()
887-
datadriven.RunTest(t, "testdata/normalized_voter_all_rels",
889+
datadriven.RunTest(t, filepath.Join(datapathutils.TestDataPath(t), t.Name()),
888890
func(t *testing.T, d *datadriven.TestData) string {
889891
switch d.Cmd {
890892
case "normalized-voter-all-rels":

0 commit comments

Comments
 (0)