From 09513fbb0e840c61c2fd2d3e2362c398e8ca1b0a Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 14 Sep 2023 08:15:30 +0100 Subject: [PATCH] fix: add missing RPCContext to long (nightly) test --- internal/scheduler/scheduler_long_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/scheduler/scheduler_long_test.go b/internal/scheduler/scheduler_long_test.go index 73641405..5e877832 100644 --- a/internal/scheduler/scheduler_long_test.go +++ b/internal/scheduler/scheduler_long_test.go @@ -12,6 +12,7 @@ import ( "sync" "testing" + lsctx "github.com/hashicorp/terraform-ls/internal/context" "github.com/hashicorp/terraform-ls/internal/document" "github.com/hashicorp/terraform-ls/internal/job" "github.com/hashicorp/terraform-ls/internal/state" @@ -29,6 +30,7 @@ func TestScheduler_millionJobsQueued(t *testing.T) { tmpDir := t.TempDir() ctx, cancelFunc := context.WithCancel(context.Background()) + ctx = lsctx.WithRPCContext(ctx, lsctx.RPCContextData{}) lowPrioSched := NewScheduler(ss.JobStore, 1, job.LowPriority) lowPrioSched.Start(ctx)