From d6a4e98f76566f8bf013bc1102709bac4563efea Mon Sep 17 00:00:00 2001 From: Charles Daniels Date: Thu, 29 Aug 2024 11:31:38 -0400 Subject: [PATCH] temporarily increase server_test timeout --- internal/lsp/server_test.go | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/internal/lsp/server_test.go b/internal/lsp/server_test.go index fee98fe6..ebaa467f 100644 --- a/internal/lsp/server_test.go +++ b/internal/lsp/server_test.go @@ -26,7 +26,8 @@ const mainRegoFileName = "/main.rego" // defaultTimeout is set based on the investigation done as part of // https://github.com/StyraInc/regal/issues/931. 20 seconds is 10x the // maximum time observed for an operation to complete. -const defaultTimeout = 20 * time.Second +// const defaultTimeout = 20 * time.Second +const defaultTimeout = 60 * time.Second const defaultBufferedChannelSize = 5 @@ -81,12 +82,8 @@ allow = true ` files := map[string]string{ - "main.rego": mainRegoContents, - ".regal/config.yaml": ` -rules: - idiomatic: - directory-package-mismatch: - level: ignore`, + "main.rego": mainRegoContents, + ".regal/config.yaml": ``, } for f, fc := range files { @@ -237,9 +234,6 @@ allow := true // 4. Client sends workspace/didChangeWatchedFiles notification with new config newConfigContents := ` rules: - idiomatic: - directory-package-mismatch: - level: ignore style: opa-fmt: level: ignore @@ -495,10 +489,6 @@ users = {"alice", "bob"} foo = 1 `, ".regal/config.yaml": ` -rules: - idiomatic: - directory-package-mismatch: - level: ignore ignore: files: - ignored/*.rego @@ -744,9 +734,6 @@ allow := true files := map[string]string{ childDirName + mainRegoFileName: mainRegoContents, ".regal/config.yaml": `rules: - idiomatic: - directory-package-mismatch: - level: ignore style: opa-fmt: level: error @@ -843,9 +830,6 @@ allow := true // User updates config file contents in parent directory that is not // part of the workspace newConfigContents := `rules: - idiomatic: - directory-package-mismatch: - level: ignore style: opa-fmt: level: ignore