From 260f1bf4bd6639fc6c90dcddc1ec284bfdded815 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Sat, 6 Apr 2024 18:02:17 +0200 Subject: [PATCH] fix test --- internal/handler/references_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/handler/references_test.go b/internal/handler/references_test.go index dd1416fb..9257d2a7 100644 --- a/internal/handler/references_test.go +++ b/internal/handler/references_test.go @@ -22,7 +22,7 @@ func TestRefercesIncludes(t *testing.T) { expected := []lsp.Location{ { - URI: "file:///home/qv/dev/helm-ls/internal/handler/testfile.yaml", + URI: "file:///tmp/testfile.yaml", Range: protocol.Range{ Start: protocol.Position{ Line: 0x1, Character: 0x3, @@ -34,7 +34,7 @@ func TestRefercesIncludes(t *testing.T) { }, }, protocol.Location{ - URI: "file:///home/qv/dev/helm-ls/internal/handler/testfile.yaml", + URI: "file:///tmp/testfile.yaml", Range: protocol.Range{ Start: protocol.Position{ Line: 0x2, @@ -47,7 +47,7 @@ func TestRefercesIncludes(t *testing.T) { }, }, protocol.Location{ - URI: "file:///home/qv/dev/helm-ls/internal/handler/testfile.yaml", + URI: "file:///tmp/testfile.yaml", Range: protocol.Range{ Start: protocol.Position{ Line: 0x0, @@ -88,7 +88,7 @@ func TestRefercesIncludes(t *testing.T) { t.Run(tt.desc, func(t *testing.T) { documents := lsplocal.NewDocumentStore() - path := "testfile.yaml" + path := "/tmp/testfile.yaml" fileURI := uri.File(path) d := lsp.DidOpenTextDocumentParams{