diff options
Diffstat (limited to 'integrationtests/cleanup_test.go')
| -rw-r--r-- | integrationtests/cleanup_test.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/integrationtests/cleanup_test.go b/integrationtests/cleanup_test.go index 18a0531..316c1b1 100644 --- a/integrationtests/cleanup_test.go +++ b/integrationtests/cleanup_test.go @@ -80,8 +80,7 @@ func TestCleanupOutputDirContainsOnlyExpectedFiles(t *testing.T) { for _, e := range entries { name := e.Name() validSuffix := strings.HasSuffix(name, ".ior.zst") || - strings.HasSuffix(name, ".svg") || - name == "ior.bpf.o" // symlink created by startIor + strings.HasSuffix(name, ".svg") if !validSuffix { t.Errorf("unexpected file in output dir: %s", name) } @@ -172,11 +171,8 @@ func TestCleanupOutputDirEmptyAfterIorFailure(t *testing.T) { t.Fatalf("read output dir: %v", err) } - // Only the BPF symlink should exist; ior produced no output. - for _, e := range entries { - if e.Name() != "ior.bpf.o" { - t.Errorf("unexpected file in output dir after ior failure: %s", e.Name()) - } + if len(entries) != 0 { + t.Fatalf("expected empty output dir after ior failure, found %d entries", len(entries)) } } |
