Skip to content

Commit

Permalink
Add extra Etch validation after Server restore test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Jul 6, 2023
1 parent f8a9cde commit b38e00f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions convex-peer/src/test/java/convex/peer/RestoreTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
import convex.core.lang.Symbols;
import convex.core.store.AStore;
import convex.core.transactions.Invoke;
import etch.Etch;
import etch.EtchStore;
import etch.EtchUtils;
import etch.EtchUtils.FullValidator;

public class RestoreTest {
AKeyPair KP=AKeyPair.createSeeded(123456781);
Expand Down Expand Up @@ -96,5 +99,9 @@ public void restoreTest() throws IOException, InterruptedException, ExecutionExc

State state=s2.getPeer().getConsensusState();
assertNotNull(state);

Etch e=((EtchStore)s2.getStore()).getEtch();
FullValidator vd = EtchUtils.getFullValidator();
e.visitIndex(vd);
}
}

0 comments on commit b38e00f

Please sign in to comment.