From b3bb260d27549ed325f7f0f94947cfa6aea051e3 Mon Sep 17 00:00:00 2001 From: Hongyu Yang <93068857+yanghy233@users.noreply.github.com> Date: Fri, 11 Oct 2024 19:55:00 +0800 Subject: [PATCH] Correct the test cases to prevent the TestCommitMissingPrewrite4B case from not being tested. (#459) --- kv/transaction/commands4b_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kv/transaction/commands4b_test.go b/kv/transaction/commands4b_test.go index 5b3fccf2..6b583ac9 100644 --- a/kv/transaction/commands4b_test.go +++ b/kv/transaction/commands4b_test.go @@ -569,9 +569,9 @@ func TestCommitConflictRepeat4B(t *testing.T) { }) } -// TestCommitMissingPrewrite4a tests committing a transaction which was not prewritten (i.e., a request was lost, but +// TestCommitMissingPrewrite4B tests committing a transaction which was not prewritten (i.e., a request was lost, but // the commit request was not). -func TestCommitMissingPrewrite4a(t *testing.T) { +func TestCommitMissingPrewrite4B(t *testing.T) { builder := newBuilder(t) cmd := builder.commitRequest([]byte{3}) builder.init([]kv{