diff --git a/internal/gitaly/service/smarthttp/receive_pack_test.go b/internal/gitaly/service/smarthttp/receive_pack_test.go index 940605bbea7657dbe0e4f4513f47fae18d69f7dc..a4b03b798dd1d2c615049a33e699a88bfcfa860c 100644 --- a/internal/gitaly/service/smarthttp/receive_pack_test.go +++ b/internal/gitaly/service/smarthttp/receive_pack_test.go @@ -586,9 +586,10 @@ func testPostReceiveWithReferenceTransactionHook(t *testing.T, ctx context.Conte go gitalyServer.Serve(internalListener) defer gitalyServer.Stop() + backchannelVotingEnabled := featureflag.IsEnabled(ctx, featureflag.BackchannelVoting) client := newMuxedSmartHTTPClient(t, ctx, "unix://"+gitalySocketPath, cfg.Auth.Token, func() backchannel.Server { srv := grpc.NewServer() - if featureflag.IsEnabled(ctx, featureflag.BackchannelVoting) { + if backchannelVotingEnabled { gitalypb.RegisterRefTransactionServer(srv, refTransactionServer) }