mirror of
https://github.com/gofiber/storage.git
synced 2025-10-21 15:49:24 +08:00
Update config_test.go
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package leveldb
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -15,5 +16,9 @@ func TestConfigConfigMaxOpenFiles(t *testing.T) {
|
||||
|
||||
func TestConfigDefaultDarwin(t *testing.T) { // MacOS
|
||||
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