Skip to content

Commit

Permalink
check that SocialEvent is a ready state
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoaresd committed Nov 25, 2024
1 parent 924068a commit 5d1b102
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/parallel/registration_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
routev1 "github.com/openshift/api/route/v1"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -787,7 +788,10 @@ func TestActivationCodeVerification(t *testing.T) {
testsocialevent.WithTargetCluster(member2Await.ClusterName))
err := hostAwait.CreateWithCleanup(t, event)
require.NoError(t, err)
event, err = hostAwait.WaitForSocialEvent(t, event.Name) // need to reload event
event, err = hostAwait.WaitForSocialEvent(t, event.Name, wait.UntilSocialEventHasConditions(toolchainv1alpha1.Condition{
Type: toolchainv1alpha1.ConditionReady,
Status: corev1.ConditionTrue,
})) // need to reload event
require.NoError(t, err)
event.Status.ActivationCount = event.Spec.MaxAttendees // activation count identical to `MaxAttendees`
err = hostAwait.Client.Status().Update(context.TODO(), event)
Expand Down

0 comments on commit 5d1b102

Please sign in to comment.