mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-07 12:37:41 +01:00
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:
1 parent
39ef551bcf
commit
4bb74382a6
1 file changed
+1
-1
@@ -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 }
|
||||
|
||||
|
||||
Reference in new issue
Block a user