Skip to content

Commit

Permalink
temporarily increase server_test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesdaniels committed Aug 29, 2024
1 parent e893548 commit d6a4e98
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions internal/lsp/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -495,10 +489,6 @@ users = {"alice", "bob"}
foo = 1
`,
".regal/config.yaml": `
rules:
idiomatic:
directory-package-mismatch:
level: ignore
ignore:
files:
- ignored/*.rego
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6a4e98

Please sign in to comment.