summaryrefslogtreecommitdiff
path: root/internal/recordsdir/recordsdir_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-07 21:35:01 +0300
committerPaul Buetow <paul@buetow.org>2026-06-07 21:35:01 +0300
commit161549ef9832b55983ae8ec3851f0c8f7536b72a (patch)
tree473a5bb44427be294c54f3c3a42077841a354c45 /internal/recordsdir/recordsdir_test.go
parent80436aa8a109beaace6dd164d91229b1b6ba41b9 (diff)
Add Updated column to Host reports from file mtimev0.5.2
Diffstat (limited to 'internal/recordsdir/recordsdir_test.go')
-rw-r--r--internal/recordsdir/recordsdir_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/recordsdir/recordsdir_test.go b/internal/recordsdir/recordsdir_test.go
index 5e72d9d..40028ac 100644
--- a/internal/recordsdir/recordsdir_test.go
+++ b/internal/recordsdir/recordsdir_test.go
@@ -49,6 +49,9 @@ func TestListNonEmptyFiles(t *testing.T) {
if entries[0].Host != "h1" || filepath.Base(entries[0].Path) != "h1.records" {
t.Fatalf("unexpected entry: %#v", entries[0])
}
+ if entries[0].ModTime.IsZero() {
+ t.Fatal("expected non-zero ModTime")
+ }
}
func TestListNonEmptyFiles_ReadError(t *testing.T) {