mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-25 20:30:30 +08:00
Correct the test cases to prevent the TestCommitMissingPrewrite4B case from not being tested. (#459)
This commit is contained in:
parent
1338f1b099
commit
b3bb260d27
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user