Skip to content

Commit

Permalink
Fix windows tests 2 (#5932)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbaranowski authored Dec 7, 2023
1 parent 6199043 commit 394721e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion component/loki/source/windowsevent/bookmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ package windowsevent
import (
"bytes"
"errors"
"github.com/natefinch/atomic"
"io"
"io/fs"
"os"

"github.com/natefinch/atomic"

"github.com/grafana/loki/clients/pkg/promtail/targets/windows/win_eventlog"
)

Expand Down Expand Up @@ -55,6 +56,7 @@ func newBookMark(path string) (*bookMark, error) {
if err != nil {
return nil, err
}
defer file.Close()
fileContent, err := io.ReadAll(file)
if err != nil {
return nil, err
Expand Down
2 changes: 2 additions & 0 deletions docs/docs_updated_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !windows

package docs

import (
Expand Down

0 comments on commit 394721e

Please sign in to comment.