Skip to content

Commit

Permalink
Remove an unneeded struct in the gateway runner
Browse files Browse the repository at this point in the history
Signed-off-by: Lior Okman <[email protected]>
  • Loading branch information
liorokman committed May 30, 2024
1 parent 3135997 commit bc69794
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions internal/gatewayapi/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@ import (
pb "github.com/envoyproxy/gateway/proto/extension"
)

type testingExtensionServer struct {
pb.UnimplementedEnvoyGatewayExtensionServer
}

func TestRunner(t *testing.T) {
// Setup
pResources := new(message.ProviderResources)
xdsIR := new(message.XdsIR)
infraIR := new(message.InfraIR)
cfg, err := config.New()
require.NoError(t, err)
extMgr, closeFunc, err := registry.NewInMemoryManager(egv1a1.ExtensionManager{}, &testingExtensionServer{})
extMgr, closeFunc, err := registry.NewInMemoryManager(egv1a1.ExtensionManager{}, &pb.UnimplementedEnvoyGatewayExtensionServer{})
require.NoError(t, err)
defer closeFunc()
r := New(&Config{
Expand Down Expand Up @@ -123,7 +119,7 @@ func TestDeleteStatusKeys(t *testing.T) {
infraIR := new(message.InfraIR)
cfg, err := config.New()
require.NoError(t, err)
extMgr, closeFunc, err := registry.NewInMemoryManager(egv1a1.ExtensionManager{}, &testingExtensionServer{})
extMgr, closeFunc, err := registry.NewInMemoryManager(egv1a1.ExtensionManager{}, &pb.UnimplementedEnvoyGatewayExtensionServer{})
require.NoError(t, err)
defer closeFunc()
r := New(&Config{
Expand Down Expand Up @@ -216,7 +212,7 @@ func TestDeleteAllStatusKeys(t *testing.T) {
infraIR := new(message.InfraIR)
cfg, err := config.New()
require.NoError(t, err)
extMgr, closeFunc, err := registry.NewInMemoryManager(egv1a1.ExtensionManager{}, &testingExtensionServer{})
extMgr, closeFunc, err := registry.NewInMemoryManager(egv1a1.ExtensionManager{}, &pb.UnimplementedEnvoyGatewayExtensionServer{})
require.NoError(t, err)
defer closeFunc()
r := New(&Config{
Expand Down

0 comments on commit bc69794

Please sign in to comment.