mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests: Rename corruptHash to CorruptBBolt
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
This commit is contained in:
parent
037a898ba0
commit
a8020a0320
@ -43,7 +43,7 @@ func TestEtcdCorruptHash(t *testing.T) {
|
|||||||
testCtl(t, corruptTest, withQuorum(),
|
testCtl(t, corruptTest, withQuorum(),
|
||||||
withCfg(*cfg),
|
withCfg(*cfg),
|
||||||
withInitialCorruptCheck(),
|
withInitialCorruptCheck(),
|
||||||
withCorruptFunc(corruptHash),
|
withCorruptFunc(CorruptBBolt),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ func corruptTest(cx ctlCtx) {
|
|||||||
waitReadyExpectProc(proc, []string{fmt.Sprintf("etcdmain: %016x found data inconsistency with peers", id0)})
|
waitReadyExpectProc(proc, []string{fmt.Sprintf("etcdmain: %016x found data inconsistency with peers", id0)})
|
||||||
}
|
}
|
||||||
|
|
||||||
func corruptHash(fpath string) error {
|
func CorruptBBolt(fpath string) error {
|
||||||
db, derr := bolt.Open(fpath, os.ModePerm, &bolt.Options{})
|
db, derr := bolt.Open(fpath, os.ModePerm, &bolt.Options{})
|
||||||
if derr != nil {
|
if derr != nil {
|
||||||
return derr
|
return derr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user