mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-21 23:59:09 -04:00
[drop] Simulate fatal node join failure
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
ed719a7d3d
commit
e43f6df36f
@ -255,6 +255,15 @@ func (c *JoinClient) startNodeAndJoin(ticket *joinproto.IssueJoinTicketResponse,
|
||||
ctx, cancel := context.WithTimeout(context.Background(), c.joinTimeout)
|
||||
defer cancel()
|
||||
|
||||
// [REMOVE THIS BLOCK] TEST @daniel-weisse
|
||||
if true {
|
||||
c.log.Error("Simulating fatal node failure...")
|
||||
c.log.Error("Returning error from startNodeAndJoin in 1 Minute...")
|
||||
time.Sleep(1 * time.Minute)
|
||||
return errors.New("simulated fatal node failure")
|
||||
}
|
||||
// [REMOVE THIS BLOCK] TEST @daniel-weisse
|
||||
|
||||
clusterID, err := attestation.DeriveClusterID(ticket.MeasurementSecret, ticket.MeasurementSalt)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user