Skip to content

Commit 04df764

Browse files
committed
Fix the linting error
Signed-off-by: Remy Suen <[email protected]>
1 parent 8448baa commit 04df764

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/compose/hover_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ services:
548548
for _, tc := range testCases {
549549
t.Run(tc.name, func(t *testing.T) {
550550
mgr := document.NewDocumentManager()
551-
mgr.Write(context.Background(), uri.URI(composeOtherFile), protocol.DockerComposeLanguage, 1, []byte(tc.otherContent))
551+
changed, err := mgr.Write(context.Background(), uri.URI(composeOtherFile), protocol.DockerComposeLanguage, 1, []byte(tc.otherContent))
552+
require.NoError(t, err)
553+
require.True(t, changed)
552554
doc := document.NewComposeDocument(mgr, uri.URI(composeFile), 1, []byte(tc.content))
553555
result, err := Hover(context.Background(), &protocol.HoverParams{
554556
TextDocumentPositionParams: protocol.TextDocumentPositionParams{

0 commit comments

Comments
 (0)