mirror of
https://github.com/gofiber/storage.git
synced 2025-10-22 16:19:23 +08:00
Update config_test.go
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package leveldb
|
package leveldb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
@@ -15,5 +16,9 @@ func TestConfigConfigMaxOpenFiles(t *testing.T) {
|
|||||||
|
|
||||||
func TestConfigDefaultDarwin(t *testing.T) { // MacOS
|
func TestConfigDefaultDarwin(t *testing.T) { // MacOS
|
||||||
cfg := configDefault()
|
cfg := configDefault()
|
||||||
assert.Equal(t, 200, cfg.MaxOpenFiles)
|
if runtime.GOOS == "darwin" {
|
||||||
|
assert.Equal(t, 200, cfg.MaxOpenFiles)
|
||||||
|
} else {
|
||||||
|
assert.Equal(t, 500, cfg.MaxOpenFiles)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user