Skip to content

Commit

Permalink
adjust tests to run_all information
Browse files Browse the repository at this point in the history
  • Loading branch information
datadius committed May 1, 2024
1 parent 8bc0846 commit a8f3ca4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,20 @@ func TestDownloadFileInfo(t *testing.T) {
t.Errorf("File size does not match")
}

if fs.FileMode(fileInfos.Permissions) == fileStat.Mode().Perm() {
t.Errorf("File permissions don't match")
if fs.FileMode(fileInfos.Permissions) == fs.FileMode(0777) {
t.Errorf(
"File permissions don't match %s vs %s",
fs.FileMode(fileInfos.Permissions),
fileStat.Mode().Perm(),
)
}

if fileInfos.Mtime != fileStat.ModTime().Unix() {
t.Errorf("File modification time does not match")
t.Errorf(
"File modification time does not match %d vs %d",
fileInfos.Mtime,
fileStat.ModTime().Unix(),
)
}
}

Expand Down

0 comments on commit a8f3ca4

Please sign in to comment.