add full chain ref integ. test

This commit is contained in:
Roy Crihfield 2023-08-10 22:34:37 +08:00
parent b4c9f1e864
commit a512d3f67b

View File

@ -240,6 +240,14 @@ var _ = Describe("referential integrity", func() {
})
})
Describe("ValidateReferentialIntegrity", func() {
It("Validates referential integrity of full chain", func() {
for i := uint64(startBlock); i <= chainLength; i++ {
err := validator.ValidateReferentialIntegrity(tx, i)
Expect(err).ToNot(HaveOccurred())
}
})
})
})
func deleteEntriesFrom(tx *sqlx.Tx, tableName string) error {