[node.sh] further extend the prompt timeout and added input

pull/3219/head
Jacky Wang 4 years ago
parent 24b9578a20
commit ea9921d2f7
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 1
      internal/blsgen/kms.go
  2. 2
      internal/blsgen/kms_test.go
  3. 2
      internal/blsgen/params.go

@ -237,6 +237,7 @@ func (provider *promptACProvider) prompt(hint string) (string, error) {
case <-finished:
return res, err
case <-timedOut:
console.println("ERROR input time out")
return "", errors.New("timed out")
}
}

@ -240,7 +240,7 @@ func TestFileACProvider_getAwsConfig(t *testing.T) {
// To successfully run this test, need to set the AWS default configuration and set up kms
// key and replace keyId field.
func TestKMSEncryption(t *testing.T) {
//t.SkipNow()
t.SkipNow()
client, err := getSharedKMSClient()
if err != nil {
t.Fatal(err)

@ -12,7 +12,7 @@ const (
const (
// The default timeout for kms config prompt. The timeout is introduced
// for security concern.
defKmsPromptTimeout = 10 * time.Second
defKmsPromptTimeout = 60 * time.Second
)
const (

Loading…
Cancel
Save