
The core package uses global variables that keep from having more than one Tile38 instance runnning in the same process. Move the core variables in the server.Options type which are uniquely stated per Server instance. The build variables are still present in the core package.
36 lines
541 B
Go
36 lines
541 B
Go
package tests
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func subTestAOF(t *testing.T, mc *mockServer) {
|
|
runStep(t, mc, "loading", aof_loading_test)
|
|
}
|
|
|
|
func aof_loading_test(mc *mockServer) error {
|
|
|
|
// aof, err := mc.readAOF()
|
|
// if err != nil {
|
|
// return err
|
|
// }
|
|
|
|
// aof = append(aof, "asdfasdf\r\n"...)
|
|
// aof = nil
|
|
// mc2, err := mockOpenServer(MockServerOptions{
|
|
// Silent: false,
|
|
// Metrics: false,
|
|
// AOFData: aof,
|
|
// })
|
|
// if err != nil {
|
|
// return err
|
|
// }
|
|
// defer mc2.Close()
|
|
|
|
// time.Sleep(time.Minute)
|
|
|
|
// `
|
|
|
|
return nil
|
|
}
|