Skip to content

Commit

Permalink
fix: add logger to test suite to suppress warning
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Utt <[email protected]>
  • Loading branch information
shaneutt committed Oct 11, 2023
1 parent 2bdf058 commit 1bfed12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/conformance/gateway_conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ package conformance
import (
"testing"

"github.com/go-logr/logr"
"github.com/google/uuid"
"github.com/kong/kubernetes-testing-framework/pkg/clusters"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"
gatewayv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
gatewayv1beta1 "sigs.k8s.io/gateway-api/apis/v1beta1"
"sigs.k8s.io/gateway-api/conformance/apis/v1alpha1"
Expand All @@ -34,6 +36,7 @@ const (

func TestGatewayConformance(t *testing.T) {
t.Log("configuring environment for gateway conformance tests")
log.SetLogger(logr.FromContextOrDiscard(ctx))
c, err := client.New(env.Cluster().Config(), client.Options{})
require.NoError(t, err)
require.NoError(t, gatewayv1alpha2.AddToScheme(c.Scheme()))
Expand Down

0 comments on commit 1bfed12

Please sign in to comment.