Skip to content

Commit c86b4ca

Browse files
sylrclaude
andcommitted
fix: use deferred.FromValue instead of non-existent NewValuedDeferred
The local_env_test.go was using NewValuedDeferred from a dot-import of go-libs/v3/testing/utils which doesn't export that symbol. Replace with deferred.FromValue from go-libs/v3/testing/deferred. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4050671 commit c86b4ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/performance/pkg/write/local_env_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"context"
77
"github.com/formancehq/go-libs/v3/logging"
88
"github.com/formancehq/go-libs/v3/otlp/otlpmetrics"
9+
"github.com/formancehq/go-libs/v3/testing/deferred"
910
"github.com/formancehq/go-libs/v3/testing/docker"
1011
"github.com/formancehq/go-libs/v3/testing/testservice"
11-
. "github.com/formancehq/go-libs/v3/testing/utils"
1212
ledgerclient "github.com/formancehq/ledger/pkg/client"
1313
"github.com/formancehq/ledger/test/performance/pkg/env"
1414
"io"
@@ -62,11 +62,11 @@ func (f *TestServerEnvFactory) Create(ctx context.Context, b *testing.B) env.Env
6262
}
6363

6464
testServer := testserver.NewTestServer(
65-
NewValuedDeferred(connectionOptions),
65+
deferred.FromValue(connectionOptions),
6666
testservice.WithInstruments(
6767
testservice.DebugInstrumentation(os.Getenv("DEBUG") == "true"),
6868
testservice.OutputInstrumentation(output),
69-
testservice.OTLPInstrumentation(NewValuedDeferred(testservice.OTLPConfig{
69+
testservice.OTLPInstrumentation(deferred.FromValue(testservice.OTLPConfig{
7070
Metrics: &otlpmetrics.ModuleConfig{
7171
KeepInMemory: true,
7272
RuntimeMetrics: true,

0 commit comments

Comments
 (0)