test(installer): fix ignore file path assertion on Windows

This commit is contained in:
Madureira committed 2026-09-04 10:17:13 -03:00
1 parent 4fb9d22b68
commit dd2374604b
1 file changed
+2 -1
+2 -1
View File
@@ -1,6 +1,7 @@
package installer
import (
"fmt"
"io"
"net/http"
"os"
@@ -45,7 +46,7 @@ func TestUpdateIgnoreFileRejectsHTMLAndPreservesExisting(t *testing.T) {
err := UpdateIgnoreFile()
require.Error(t, err)
require.Contains(t, err.Error(), path)
require.Contains(t, err.Error(), fmt.Sprintf("%q", path))
got, err := os.ReadFile(path)
require.NoError(t, err)