Skip to content

Commit

Permalink
Print to find out which field is causing panic.
Browse files Browse the repository at this point in the history
  • Loading branch information
tecarter94 committed Jul 15, 2024
1 parent e11277c commit 2d0f606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openshift-with-appstudio-test/e2e/basictests.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ func runDbTests(path string, testSet string, ta *testArgs) {
for _, ba := range retrievedDb.Status.BuildAttempts {
baBuildRecipeValue := reflect.ValueOf(ba.Recipe)
for fieldName, hasValue := range fieldsWithValues {
ta.Logf(fieldName)
buildRecipeField := buildRecipeValue.FieldByName(fieldName)
baBuildRecipeField := baBuildRecipeValue.FieldByName(fieldName)
if hasValue && reflect.DeepEqual(buildRecipeField.Interface(), baBuildRecipeField.Interface()) {
Expand Down

0 comments on commit 2d0f606

Please sign in to comment.