mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
parent
a17f150e5d
commit
a88848009a
3 changed files with 43 additions and 8 deletions
|
@ -368,9 +368,9 @@ func TestLoggingErrorToFileConfig(t *testing.T) {
|
|||
time.Sleep(500 * time.Millisecond)
|
||||
|
||||
//check file content
|
||||
_, err = ioutil.ReadFile(expectedFile)
|
||||
if err == nil {
|
||||
t.Fatalf("file should be empty")
|
||||
x, err := ioutil.ReadFile(expectedFile)
|
||||
if err == nil && len(x) > 0 {
|
||||
t.Fatalf("file should be empty, got '%s'", x)
|
||||
}
|
||||
|
||||
os.Remove("./crowdsec.log")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue