Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Nov 30, 2021
1 parent 99c444c commit 67b5ba7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions filebeat/input/journald/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ type inputTestingEnvironment struct {
grp unison.TaskGroup
}

//TODO(Tiago): clean up un-used suff like the temp dir

func newInputTestingEnvironment(t *testing.T) *inputTestingEnvironment {
return &inputTestingEnvironment{
t: t,
Expand Down Expand Up @@ -130,24 +128,6 @@ func (e *inputTestingEnvironment) mustWriteFile(filename string, lines []byte) {
}
}

// requireOffsetInRegistry checks if the expected offset is set for a file.
// func (e *inputTestingEnvironment) requireOffsetInRegistry(filename string, expectedOffset int) {
// e.t.Helper()
// filepath := e.abspath(filename)
// fi, err := os.Stat(filepath)
// if err != nil {
// e.t.Fatalf("cannot stat file when cheking for offset: %+v", err)
// }

// id := getIDFromPath(filepath, fi)
// entry, err := e.getRegistryState(id)
// if err != nil {
// e.t.Fatalf(err.Error())
// }

// require.Equal(e.t, expectedOffset, entry.Cursor.Offset)
// }

type testInputStore struct {
registry *statestore.Registry
}
Expand Down

0 comments on commit 67b5ba7

Please sign in to comment.