storj/storage/filestore/dir_test.go
2018-09-28 09:59:27 +03:00

22 lines
426 B
Go

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
package filestore
import "testing"
func TestDiskInfoFromPath(t *testing.T) {
info, err := diskInfoFromPath(".")
if err != nil {
t.Fatal(err)
}
if info.AvailableSpace <= 0 {
t.Fatal("expected to have some disk space")
}
if info.ID == "" {
t.Fatal("didn't get filesystem id")
}
t.Logf("Got: %v %v", info.ID, info.AvailableSpace)
}