Skip to content

Commit

Permalink
Fix largeSchemaUpdate test (#7522)
Browse files Browse the repository at this point in the history
Fix flaky behaviour of TestLargeSchemaUpdate test.
  • Loading branch information
vmrajas authored Mar 8, 2021
1 parent 02e5170 commit 08f88f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphql/e2e/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion graphql/e2e/schema/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit 08f88f8

Please sign in to comment.