diff options
Diffstat (limited to 'internal/recordsdir/recordsdir_test.go')
| -rw-r--r-- | internal/recordsdir/recordsdir_test.go | 3 |
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) { |
