diff --git a/tests/e2e/etcd_corrupt_test.go b/tests/e2e/etcd_corrupt_test.go index 87431b6f6..9ec81c442 100644 --- a/tests/e2e/etcd_corrupt_test.go +++ b/tests/e2e/etcd_corrupt_test.go @@ -43,7 +43,7 @@ func TestEtcdCorruptHash(t *testing.T) { testCtl(t, corruptTest, withQuorum(), withCfg(*cfg), 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)}) } -func corruptHash(fpath string) error { +func CorruptBBolt(fpath string) error { db, derr := bolt.Open(fpath, os.ModePerm, &bolt.Options{}) if derr != nil { return derr