container: do not fail hard, if single containers can't be scraped (#1561)

This commit is contained in:
Jan-Otto Kröpke
2024-09-07 20:26:22 +02:00
committed by GitHub
parent 9780a6aec6
commit 83b0aa8f62
7 changed files with 252 additions and 130 deletions

View File

@@ -16,9 +16,8 @@ import (
var baseDir = "../../../tools/textfile-test"
//nolint:paralleltest
func TestMultipleDirectories(t *testing.T) {
t.Parallel()
logger := log.NewLogfmtLogger(os.Stdout)
testDir := baseDir + "/multiple-dirs"
testDirs := fmt.Sprintf("%[1]s/dir1,%[1]s/dir2,%[1]s/dir3", testDir)
@@ -60,9 +59,8 @@ func TestMultipleDirectories(t *testing.T) {
}
}
//nolint:paralleltest
func TestDuplicateFileName(t *testing.T) {
t.Parallel()
logger := log.NewLogfmtLogger(os.Stdout)
testDir := baseDir + "/duplicate-filename"
textFileCollector := textfile.New(&textfile.Config{