Skip to content

Commit

Permalink
fix: add missing RPCContext to long (nightly) test (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Sep 15, 2023
1 parent 095e91b commit 84a4cfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/scheduler/scheduler_long_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 84a4cfe

Please sign in to comment.