filer.remote.sync test: give the same-second saved offset a fractional part

With whole seconds, returning the creation second resolved to the same
time and passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-11-06 01:44:09 -08:00
1 parent 39ef551bcf
commit 4bb74382a6
1 file changed
+1 -1
+1 -1
View File
@@ -637,7 +637,7 @@ func TestRetriedWriteFileStopsWhenTheLookupAfterAFailureIsUnanswered(t *testing.
}
func TestResolveLastSyncOffsetKeepsTheSavedOffsetWhenTheLookupFails(t *testing.T) {
saved := time.Date(2026, 11, 4, 17, 57, 10, 0, time.UTC)
saved := time.Date(2026, 11, 4, 17, 57, 10, 123_000_000, time.UTC)
lookupFails := func() (*filer_pb.Entry, error) { return nil, context.DeadlineExceeded }
savedOffset := func() (int64, error) { return saved.UnixNano(), nil }