summaryrefslogtreecommitdiff
path: root/internal/lsp/debounce_throttle_more_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-24 23:21:43 +0300
committerPaul Buetow <paul@buetow.org>2025-09-24 23:21:43 +0300
commitc3c71345db9086392cd9b7529c7f5287009c226e (patch)
treed227894ab900d6050cbe1418984526088a692db5 /internal/lsp/debounce_throttle_more_test.go
parent127844a4ee481590ef53b6777d34bf2114cb3ab1 (diff)
Add runtime config store and reload command
Diffstat (limited to 'internal/lsp/debounce_throttle_more_test.go')
-rw-r--r--internal/lsp/debounce_throttle_more_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/lsp/debounce_throttle_more_test.go b/internal/lsp/debounce_throttle_more_test.go
index ed61336..7657cab 100644
--- a/internal/lsp/debounce_throttle_more_test.go
+++ b/internal/lsp/debounce_throttle_more_test.go
@@ -8,7 +8,9 @@ import (
func TestWaitForDebounce_WaitsRoughlyDebounce(t *testing.T) {
s := newTestServer()
- s.completionDebounce = 20 * time.Millisecond
+ cfg := s.cfg
+ cfg.CompletionDebounceMs = 20
+ s.cfg = cfg
s.mu.Lock()
s.lastInput = time.Now()
s.mu.Unlock()
@@ -21,7 +23,9 @@ func TestWaitForDebounce_WaitsRoughlyDebounce(t *testing.T) {
func TestWaitForThrottle_WaitsRoughlyInterval(t *testing.T) {
s := newTestServer()
- s.throttleInterval = 20 * time.Millisecond
+ cfg := s.cfg
+ cfg.CompletionThrottleMs = 20
+ s.cfg = cfg
s.mu.Lock()
s.lastLLMCall = time.Now()
s.mu.Unlock()