@@ -102,7 +102,7 @@ func restartInsightsOperator(t *testing.T) {
102
102
103
103
for _ , pod := range pods .Items {
104
104
clientset .CoreV1 ().Pods ("openshift-insights" ).Delete (pod .Name , & metav1.DeleteOptions {})
105
- err := wait .PollImmediate (1 * time .Second , 10 * time .Minute , func () (bool , error ) {
105
+ err := wait .PollImmediate (1 * time .Second , 20 * time .Minute , func () (bool , error ) {
106
106
_ , err := clientset .CoreV1 ().Pods ("openshift-insights" ).Get (pod .Name , metav1.GetOptions {})
107
107
if err == nil {
108
108
t .Logf ("the pod is not yet deleted: %v\n " , err )
@@ -150,7 +150,7 @@ func checkPodsLogs(t *testing.T, kubeClient *kubernetes.Clientset, message strin
150
150
panic (err .Error ())
151
151
}
152
152
153
- errLog := wait .PollImmediate (5 * time .Second , 15 * time .Minute , func () (bool , error ) {
153
+ errLog := wait .PollImmediate (5 * time .Second , 30 * time .Minute , func () (bool , error ) {
154
154
req := kubeClient .CoreV1 ().Pods (pod .Namespace ).GetLogs (pod .Name , & corev1.PodLogOptions {})
155
155
podLogs , err := req .Stream ()
156
156
if err != nil {
@@ -168,6 +168,7 @@ func checkPodsLogs(t *testing.T, kubeClient *kubernetes.Clientset, message strin
168
168
result := strings .Contains (log , message )
169
169
if result == false {
170
170
t .Logf ("No %s in logs\n " , message )
171
+ t .Logf ("Logs for verification: ****\n %s" , log )
171
172
return false , nil
172
173
}
173
174
@@ -193,7 +194,7 @@ func TestMain(m *testing.M) {
193
194
func waitForOperator (kubeClient * kubernetes.Clientset ) error {
194
195
depClient := kubeClient .AppsV1 ().Deployments ("openshift-insights" )
195
196
196
- err := wait .PollImmediate (1 * time .Second , 10 * time .Minute , func () (bool , error ) {
197
+ err := wait .PollImmediate (1 * time .Second , 20 * time .Minute , func () (bool , error ) {
197
198
_ , err := depClient .Get ("insights-operator" , metav1.GetOptions {})
198
199
if err != nil {
199
200
fmt .Printf ("error waiting for operator deployment to exist: %v\n " , err )
0 commit comments