mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-05 16:06:57 +08:00
Updated test suites to set mock server only once in each suite instead of instantiating it in every test.
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
package pubsub
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"github.com/echovault/echovault/src/server"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
var mockServer *server.Server
|
||||
|
||||
func init() {
|
||||
mockServer = server.NewServer(server.Opts{
|
||||
Config: utils.Config{
|
||||
DataDir: "",
|
||||
EvictionPolicy: utils.NoEviction,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func Test_HandleSubscribe(t *testing.T) {
|
||||
|
||||
|
Reference in New Issue
Block a user