mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
20 lines
334 B
Go
20 lines
334 B
Go
package leveldb
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestConfigConfigMaxOpenFiles(t *testing.T) {
|
|
cfg := Config{
|
|
MaxOpenFiles: 1000,
|
|
}
|
|
assert.Equal(t, 1000, cfg.MaxOpenFiles)
|
|
}
|
|
|
|
func TestConfigDefaultDarwin(t *testing.T) { // MacOS
|
|
cfg := configDefault()
|
|
assert.Equal(t, 200, cfg.MaxOpenFiles)
|
|
}
|