mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 22:51:02 +00:00
Fix test for CountOpenFiles
This commit is contained in:
parent
5865a2cd71
commit
dc7dd26955
1 changed files with 7 additions and 3 deletions
|
|
@ -373,10 +373,14 @@ func tempMkdir(t *testing.T) string {
|
|||
func TestCountOpenFiles(t *testing.T) {
|
||||
// Windows is not supported yet
|
||||
if runtime.GOOS == "windows" {
|
||||
return
|
||||
t.Skip("Skipping unsupported CountOpenFiles test on Windows.")
|
||||
}
|
||||
if pilosa.CountOpenFiles() == 0 {
|
||||
t.Error("Invalid open file handle count")
|
||||
count, err := pilosa.CountOpenFiles()
|
||||
if err != nil {
|
||||
t.Errorf("CountOpenFiles failed: %s", err)
|
||||
}
|
||||
if count == 0 {
|
||||
t.Error("CountOpenFiles returned invalid value 0.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue