mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
16 lines
331 B
Go
16 lines
331 B
Go
package testserver
|
|
|
|
import (
|
|
. "github.com/formancehq/go-libs/testing/utils"
|
|
. "github.com/onsi/ginkgo/v2"
|
|
)
|
|
|
|
func UseNewTestServer(configurationProvider func() Configuration) *Deferred[*Server] {
|
|
d := NewDeferred[*Server]()
|
|
BeforeEach(func() {
|
|
d.Reset()
|
|
d.SetValue(New(GinkgoT(), configurationProvider()))
|
|
})
|
|
return d
|
|
}
|