Correct the test cases to prevent the TestCommitMissingPrewrite4B case from not being tested. (#459)

This commit is contained in:
Hongyu Yang 2024-10-11 19:55:00 +08:00 committed by GitHub
parent 1338f1b099
commit b3bb260d27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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). // the commit request was not).
func TestCommitMissingPrewrite4a(t *testing.T) { func TestCommitMissingPrewrite4B(t *testing.T) {
builder := newBuilder(t) builder := newBuilder(t)
cmd := builder.commitRequest([]byte{3}) cmd := builder.commitRequest([]byte{3})
builder.init([]kv{ builder.init([]kv{