Skip to content

Commit 2093fce

Browse files
test/e2e: set logger (#1309)
Signed-off-by: Prajyot-Parab <[email protected]>
1 parent d6512a8 commit 2093fce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/suite_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ import (
2929
"testing"
3030

3131
"k8s.io/apimachinery/pkg/runtime"
32+
"k8s.io/klog/v2"
3233
capi_e2e "sigs.k8s.io/cluster-api/test/e2e"
3334
"sigs.k8s.io/cluster-api/test/framework"
3435
"sigs.k8s.io/cluster-api/test/framework/bootstrap"
3536
"sigs.k8s.io/cluster-api/test/framework/clusterctl"
37+
ctrl "sigs.k8s.io/controller-runtime"
3638

3739
infrav1beta2 "sigs.k8s.io/cluster-api-provider-ibmcloud/api/v1beta2"
3840

@@ -90,8 +92,8 @@ func init() {
9092
}
9193

9294
func TestE2E(t *testing.T) {
95+
ctrl.SetLogger(klog.Background())
9396
RegisterFailHandler(Fail)
94-
9597
RunSpecs(t, "capi-ibmcloud-e2e")
9698
}
9799

0 commit comments

Comments
 (0)