From 73e00ada34e77162b858fcec3b75a198ad0b41e8 Mon Sep 17 00:00:00 2001 From: yanghy233 <1544935402@qq.com> Date: Fri, 11 Oct 2024 16:37:37 +0800 Subject: [PATCH] Correct the test cases to prevent the TestCommitMissingPrewrite4B case from not being tested. --- 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 5b3fccf2f..6b583ac91 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{