Initial QSfera import
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package opensearch_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/qsfera/server/services/search/pkg/config"
|
||||
opensearchtest "github.com/qsfera/server/services/search/pkg/opensearch/internal/test"
|
||||
)
|
||||
|
||||
var defaultConfig *config.Config
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
cfg, done, err := opensearchtest.SetupTests(context.Background())
|
||||
if err != nil {
|
||||
_, _ = fmt.Fprintln(os.Stderr, "Failed to setup tests:", err)
|
||||
os.Exit(1)
|
||||
return
|
||||
}
|
||||
defaultConfig = cfg
|
||||
code := m.Run()
|
||||
done()
|
||||
os.Exit(code)
|
||||
}
|
||||
Reference in New Issue
Block a user