mirror of
https://github.com/gofiber/storage.git
synced 2025-10-15 21:20:51 +08:00
leveldb support added
This commit is contained in:
19
leveldb/config_test.go
Normal file
19
leveldb/config_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user