mirror of https://github.com/pkg/sftp.git
adding debugging information for test failures
This commit is contained in:
parent
982656642c
commit
6f39c9c6b5
|
@ -29,18 +29,18 @@ func TestClientStatVFS(t *testing.T) {
|
|||
|
||||
// check some stats
|
||||
if vfs.Frsize != uint64(s.Frsize) {
|
||||
t.Fatal("fr_size does not match")
|
||||
t.Fatal("fr_size does not match, expected: %v, got: %v", s.Frsize, vfs.Frsize)
|
||||
}
|
||||
|
||||
if vfs.Bsize != uint64(s.Bsize) {
|
||||
t.Fatal("f_bsize does not match")
|
||||
t.Fatal("f_bsize does not match, expected: %v, got: %v", s.Bsize, vfs.Bsize)
|
||||
}
|
||||
|
||||
if vfs.Namemax != uint64(s.Namelen) {
|
||||
t.Fatal("f_namemax does not match")
|
||||
t.Fatal("f_namemax does not match, expected: %v, got: %v", s.Namelen, vfs.Namemax)
|
||||
}
|
||||
|
||||
if vfs.Bavail != s.Bavail {
|
||||
t.Fatal("f_bavail does not match")
|
||||
t.Fatal("f_bavail does not match, expeced: %v, got: %v", s.Bavail, vfs.Bavail)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue