From 5bd409fceb1230962445b6bd6cbc3efb6849e84f Mon Sep 17 00:00:00 2001 From: Rajas Vanjape Date: Mon, 8 Mar 2021 12:35:04 +0530 Subject: [PATCH] Fix largeSchemaUpdate test --- graphql/e2e/common/common.go | 2 +- graphql/e2e/schema/schema_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql/e2e/common/common.go b/graphql/e2e/common/common.go index 93284158ec2..5d8668af9d4 100644 --- a/graphql/e2e/common/common.go +++ b/graphql/e2e/common/common.go @@ -1138,7 +1138,7 @@ func (params *GraphQLParams) createApplicationGQLPost(url string) (*http.Request // RunGQLRequest runs a HTTP GraphQL request and returns the data or any errors. func RunGQLRequest(req *http.Request) ([]byte, error) { - client := &http.Client{Timeout: 50 * time.Second} + client := &http.Client{Timeout: 200 * time.Second} resp, err := client.Do(req) if err != nil { return nil, err diff --git a/graphql/e2e/schema/schema_test.go b/graphql/e2e/schema/schema_test.go index 1277eb434a1..15895a93360 100644 --- a/graphql/e2e/schema/schema_test.go +++ b/graphql/e2e/schema/schema_test.go @@ -553,7 +553,7 @@ func TestUpdateGQLSchemaFields(t *testing.T) { // TestLargeSchemaUpdate makes sure that updating large schemas (4000 fields with indexes) does not // throw any error func TestLargeSchemaUpdate(t *testing.T) { - numFields := 1000 + numFields := 250 schema := "type LargeSchema {" for i := 1; i <= numFields; i++ {