aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/curl/curl_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/internal/curl/curl_test.go')
-rw-r--r--client/go/internal/curl/curl_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/go/internal/curl/curl_test.go b/client/go/internal/curl/curl_test.go
index 61354c408d2..83bb7e72dbe 100644
--- a/client/go/internal/curl/curl_test.go
+++ b/client/go/internal/curl/curl_test.go
@@ -3,6 +3,7 @@ package curl
import (
"testing"
+ "time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -13,10 +14,11 @@ func TestPost(t *testing.T) {
require.Nil(t, err)
c.PrivateKey = "key.pem"
c.Certificate = "cert.pem"
+ c.Timeout = time.Minute
c.WithBodyFile("file.json")
c.Header("Content-Type", "application/json")
- assert.Equal(t, "curl --key key.pem --cert cert.pem -X POST -H 'Content-Type: application/json' --data-binary @file.json https://example.com", c.String())
+ assert.Equal(t, "curl --key key.pem --cert cert.pem -X POST -m 60 -H 'Content-Type: application/json' --data-binary @file.json https://example.com", c.String())
}
func TestGet(t *testing.T) {