Use 13000 when testing mtime transmission as there exist some systems with a 1000ns resolution. See #4175
This commit is contained in:
parent
66db3f9764
commit
85cea78b3c
1 changed files with 2 additions and 2 deletions
|
|
@ -297,11 +297,11 @@ def send(name, data, **kw):
|
|||
ft.handle_serialized_command(serialized_cmd(action='end_data', file_id=str(fid), data=data))
|
||||
self.assertResponses(ft, status='OK', name=name, file_id=str(fid))
|
||||
|
||||
send(dest, b'xyz', permissions=0o777, mtime=13)
|
||||
send(dest, b'xyz', permissions=0o777, mtime=13000)
|
||||
st = os.stat(dest)
|
||||
self.ae(st.st_nlink, 1)
|
||||
self.ae(stat.S_IMODE(st.st_mode), 0o777)
|
||||
self.ae(st.st_mtime_ns, 13)
|
||||
self.ae(st.st_mtime_ns, 13000)
|
||||
send(dest + 's1', 'path:' + os.path.basename(dest), permissions=0o777, mtime=17, ftype='symlink')
|
||||
st = os.stat(dest + 's1', follow_symlinks=False)
|
||||
self.ae(stat.S_IMODE(st.st_mode), 0o777)
|
||||
|
|
|
|||
Loading…
Reference in a new issue