mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-11-07 09:46:03 -10:00
test(installer): fix ignore file path assertion on Windows
This commit is contained in:
1 parent
4fb9d22b68
commit
dd2374604b
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user