Skip to content

Commit

Permalink
storage: remove unnecessary version override in unit test
Browse files Browse the repository at this point in the history
Remove an unnecessary use of cluster.MakeTestingClusterSettingsWithVersions in
favor of cluster.MakeTestingClusterSettings.

Epic: None
Informs: cockroachdb#100552
Release note: None
  • Loading branch information
jbowens committed Apr 4, 2023
1 parent fd972b2 commit c573620
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/storage/pebble_iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"strings"
"testing"

"github.com/cockroachdb/cockroach/pkg/clusterversion"
"github.com/cockroachdb/cockroach/pkg/roachpb"
"github.com/cockroachdb/cockroach/pkg/settings/cluster"
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
Expand Down Expand Up @@ -95,8 +94,7 @@ func randStr(fill []byte, rng *rand.Rand) {
func TestPebbleIterator_ExternalCorruption(t *testing.T) {
defer leaktest.AfterTest(t)()

version := clusterversion.ByKey(clusterversion.V22_2)
st := cluster.MakeTestingClusterSettingsWithVersions(version, version, true)
st := cluster.MakeTestingClusterSettings()
ctx := context.Background()
rng := rand.New(rand.NewSource(timeutil.Now().UnixNano()))
var f bytes.Buffer
Expand Down

0 comments on commit c573620

Please sign in to comment.