boltstore/store/config_test.go

16 lines
374 B
Go
Raw Permalink Normal View History

2014-06-17 12:53:24 +04:00
package store
2014-06-17 13:21:25 +04:00
import (
"testing"
2016-02-18 12:08:51 +03:00
"github.com/admpub/boltstore/shared"
2014-06-17 13:21:25 +04:00
)
func TestConfig_setDefault(t *testing.T) {
config := Config{}
config.setDefault()
if string(config.DBOptions.BucketName) != shared.DefaultBucketName {
2021-05-19 07:00:05 +03:00
t.Errorf("config.SessionOptions.BucketName should be %+v (actual: %+v)", shared.DefaultBucketName, string(config.DBOptions.BucketName))
2014-06-17 13:21:25 +04:00
}
}