Skip to content

Commit

Permalink
fixed more tests for ibporderer and peer
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoaeb Jindani committed Apr 5, 2024
1 parent 6929638 commit 58967dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/ibporderer/ibporderer_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
config "github.com/IBM-Blockchain/fabric-operator/pkg/initializer/orderer/config/v1"
"github.com/IBM-Blockchain/fabric-operator/pkg/offering/common"
"github.com/IBM-Blockchain/fabric-operator/pkg/operatorerrors"
"github.com/IBM-Blockchain/fabric-operator/pkg/util"
corev1 "k8s.io/api/core/v1"
k8serror "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -125,6 +126,8 @@ var _ = Describe("ReconcileIBPOrderer", func() {
mutex: &sync.Mutex{},
Config: &opconfig.Config{},
}
zaplogger, _ := util.SetupLogging("DEBUG")
reconciler.Config.Logger = zaplogger
request = reconcile.Request{
NamespacedName: types.NamespacedName{
Namespace: "test-namespace",
Expand Down
3 changes: 3 additions & 0 deletions controllers/ibppeer/ibppeer_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/IBM-Blockchain/fabric-operator/controllers/mocks"
"github.com/IBM-Blockchain/fabric-operator/pkg/offering/common"
"github.com/IBM-Blockchain/fabric-operator/pkg/operatorerrors"
"github.com/IBM-Blockchain/fabric-operator/pkg/util"
corev1 "k8s.io/api/core/v1"
k8serror "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -128,6 +129,8 @@ var _ = Describe("ReconcileIBPPeer", func() {
mutex: &sync.Mutex{},
Config: &opconfig.Config{},
}
zaplogger, _ := util.SetupLogging("DEBUG")
reconciler.Config.Logger = zaplogger
request = reconcile.Request{
NamespacedName: types.NamespacedName{
Namespace: "test-namespace",
Expand Down

0 comments on commit 58967dd

Please sign in to comment.