Skip to content

Commit 08e669e

Browse files
committed
Use UriToRealPath in lint integration test
1 parent eac9a84 commit 08e669e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

langserver/lint_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func TestLinterGolint(t *testing.T) {
116116
t.Errorf("unexpected error: %s", err)
117117
}
118118
expected := diagnostics{
119-
util.UriToPath(uriA): []*lsp.Diagnostic{
119+
util.UriToRealPath(uriA): []*lsp.Diagnostic{
120120
{
121121
Message: "exported function A should have comment or be unexported",
122122
Severity: lsp.Warning,
@@ -136,7 +136,7 @@ func TestLinterGolint(t *testing.T) {
136136
},
137137
},
138138
},
139-
util.UriToPath(uriB): []*lsp.Diagnostic{
139+
util.UriToRealPath(uriB): []*lsp.Diagnostic{
140140
{
141141
Message: "exported function B should have comment or be unexported",
142142
Severity: lsp.Warning,
@@ -157,7 +157,7 @@ func TestLinterGolint(t *testing.T) {
157157
if err != nil {
158158
t.Errorf("unexpected error: %s", err)
159159
}
160-
expected[util.UriToPath(uriD)] = []*lsp.Diagnostic{
160+
expected[util.UriToRealPath(uriD)] = []*lsp.Diagnostic{
161161
{
162162
Message: "exported function D should have comment or be unexported",
163163
Severity: lsp.Warning,

0 commit comments

Comments
 (0)