Increase timeout for fetch-measurements

This commit is contained in:
Nils Hanke 2022-11-11 11:10:26 +01:00 committed by Nils Hanke
parent b92b3772ca
commit db27a6a0dd

View File

@ -70,7 +70,7 @@ func configFetchMeasurements(cmd *cobra.Command, verifier rekorVerifier, fileHan
return err
}
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
var fetchedMeasurements config.Measurements
hash, err := fetchedMeasurements.FetchAndVerify(ctx, client, flags.measurementsURL, flags.signatureURL, []byte(constants.CosignPublicKey))