Compare commits

...

11 Commits

Author SHA1 Message Date
Preston Van Loon
d4fd09abbe Merge branch 'develop' into e2e-cp-sync-compare-finalized 2022-07-26 03:58:20 -05:00
prylabs-bulldozer[bot]
977bbb06a4 Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-04 00:41:37 +00:00
prylabs-bulldozer[bot]
4064ac59ca Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-03 23:55:37 +00:00
prylabs-bulldozer[bot]
eb3ef2bb59 Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-03 20:27:43 +00:00
prylabs-bulldozer[bot]
1e0b469f06 Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-03 19:39:34 +00:00
prylabs-bulldozer[bot]
582662a8b9 Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-03 03:53:39 +00:00
prylabs-bulldozer[bot]
574a76ed7f Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-02 19:31:12 +00:00
prylabs-bulldozer[bot]
fcae7f4e13 Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-02 16:38:13 +00:00
prylabs-bulldozer[bot]
62d60afba4 Merge refs/heads/develop into e2e-cp-sync-compare-finalized 2022-07-02 10:58:59 +00:00
Kasey Kirkham
002a4e2b57 rename func to match behavior 2022-07-01 17:34:42 -05:00
Kasey Kirkham
4440d58a8a compare finalized instead of head in cp sync e2e 2022-07-01 17:31:59 -05:00

View File

@@ -204,7 +204,7 @@ func (r *testRunner) testTxGeneration(ctx context.Context, g *errgroup.Group, ke
})
}
func (r *testRunner) waitForMatchingHead(ctx context.Context, timeout time.Duration, check, ref *grpc.ClientConn) error {
func (r *testRunner) waitForMatchingFinalized(ctx context.Context, timeout time.Duration, check, ref *grpc.ClientConn) error {
start := time.Now()
dctx, cancel := context.WithDeadline(ctx, start.Add(timeout))
defer cancel()
@@ -217,7 +217,7 @@ func (r *testRunner) waitForMatchingHead(ctx context.Context, timeout time.Durat
elapsed := time.Since(start)
return fmt.Errorf("deadline exceeded after %s waiting for known good block to appear in checkpoint-synced node", elapsed)
default:
cResp, err := checkClient.GetBlockRoot(ctx, &v1.BlockRequest{BlockId: []byte("head")})
cResp, err := checkClient.GetBlockRoot(ctx, &v1.BlockRequest{BlockId: []byte("finalized")})
if err != nil {
errStatus, ok := status.FromError(err)
// in the happy path we expect NotFound results until the node has synced
@@ -226,7 +226,7 @@ func (r *testRunner) waitForMatchingHead(ctx context.Context, timeout time.Durat
}
return fmt.Errorf("error requesting head from 'check' beacon node")
}
rResp, err := refClient.GetBlockRoot(ctx, &v1.BlockRequest{BlockId: []byte("head")})
rResp, err := refClient.GetBlockRoot(ctx, &v1.BlockRequest{BlockId: []byte("finalized")})
if err != nil {
return errors.Wrap(err, "unexpected error requesting head block root from 'ref' beacon node")
}
@@ -287,7 +287,7 @@ func (r *testRunner) testCheckpointSync(ctx context.Context, g *errgroup.Group,
// this is so that the syncEvaluators checks can run on the checkpoint sync'd node
conns = append(conns, c)
err = r.waitForMatchingHead(ctx, matchTimeout, c, conns[0])
err = r.waitForMatchingFinalized(ctx, matchTimeout, c, conns[0])
if err != nil {
return err
}