Skip to content

Commit

Permalink
Merge branch 'master' into createttr
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykazakov authored Nov 30, 2024
2 parents 62ee614 + cbf20a6 commit 1b44744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsupport/wait/awaitility.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func (a *Awaitility) WaitForDeploymentToGetReady(t *testing.T, name string, repl
return true, nil
})
if err != nil {
a.getAndPrint(t, "Deployment", a.Namespace, name, &appsv1.Deployment{})
a.GetAndPrint(t, "Deployment", a.Namespace, name, &appsv1.Deployment{})
}
require.NoError(t, err)
return deployment
Expand Down Expand Up @@ -654,7 +654,7 @@ func (a *Awaitility) listAndReturnContent(resourceKind, namespace string, list c
return fmt.Sprintf("\n%s present in the namespace:\n%s\n", resourceKind, string(content))
}

func (a *Awaitility) getAndPrint(t *testing.T, resourceKind, namespace, name string, obj client.Object, additionalOptions ...client.GetOption) {
func (a *Awaitility) GetAndPrint(t *testing.T, resourceKind, namespace, name string, obj client.Object, additionalOptions ...client.GetOption) {
t.Logf(a.getAndReturnContent(resourceKind, namespace, name, obj, additionalOptions...))
}

Expand Down

0 comments on commit 1b44744

Please sign in to comment.