Skip to content

Commit

Permalink
kvserver: trim the fat in TestRaftSSTableSideloadingProposal
Browse files Browse the repository at this point in the history
It was running twice, in the same configuration.

Release note: None
  • Loading branch information
tbg committed Jun 16, 2022
1 parent 03fc918 commit 257f073
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pkg/kv/kvserver/replica_sideload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,25 +580,6 @@ func TestRaftSSTableSideloadingSideload(t *testing.T) {
// TestRaftSSTableSideloadingProposal runs a straightforward application of an `AddSSTable` command.
func TestRaftSSTableSideloadingProposal(t *testing.T) {
defer leaktest.AfterTest(t)()

testutils.RunTrueAndFalse(t, "InMem", func(t *testing.T, engineInMem bool) {
var eng storage.Engine
if engineInMem {
eng = storage.NewDefaultInMemForTesting()
} else {
var cleanup func()
ctx := context.Background()
cleanup, eng = newOnDiskEngine(ctx, t)
defer cleanup()
}
defer eng.Close()
testRaftSSTableSideloadingProposal(t, eng)
})
}

// TestRaftSSTableSideloadingProposal runs a straightforward application of an `AddSSTable` command.
func testRaftSSTableSideloadingProposal(t *testing.T, eng storage.Engine) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)
defer SetMockAddSSTable()()

Expand Down

0 comments on commit 257f073

Please sign in to comment.