From 08f88f875932e4963ac16afe541f1eabfa434a3a Mon Sep 17 00:00:00 2001 From: vmrajas Date: Mon, 8 Mar 2021 13:38:22 +0530 Subject: [PATCH] Fix largeSchemaUpdate test (#7522) Fix flaky behaviour of TestLargeSchemaUpdate 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++ {