Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
Signed-off-by: Prateeknandle <[email protected]>
  • Loading branch information
Prateeknandle committed Feb 16, 2023
1 parent 2a36fec commit 511309a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/smoke/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ func getsummary(podName string, maxcnt int) (*opb.Response, error) {
if err != nil {
log.Error().Msgf("Failed to apply the `karmor summary` command : %v", err)
}
//fmt.Println("Summary :\n", string(summary))
if maxcnt == 20 {
fmt.Println("Summary :\n", string(summary))
}

// implemented to break the summary and make the output a valid json object (this will be removed once we get the new kubearmor release)
jsonObjects := strings.Split(string(summary), "}\n{")
Expand Down Expand Up @@ -363,7 +365,7 @@ func getsummary(podName string, maxcnt int) (*opb.Response, error) {
}
}
}
time.Sleep(10 * time.Second)
time.Sleep(20 * time.Second)
}
return nil, err
}
Expand Down

0 comments on commit 511309a

Please sign in to comment.