Skip to content

Commit

Permalink
test/e2e/framework: don't fail tests if synctarget is gone
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprusi committed Feb 7, 2023
1 parent c6b6154 commit 3e7ec62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/framework/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ func (sf *syncerFixture) CreateSyncTargetAndApplyToDownstream(t *testing.T) *app
gather(downstreamDynamic, corev1.SchemeGroupVersion.WithResource("namespaces"))

syncTarget, err := kcpClusterClient.Cluster(sf.syncTargetPath).WorkloadV1alpha1().SyncTargets().Get(ctx, sf.syncTargetName, metav1.GetOptions{})
require.NoError(t, err)
if err != nil {
t.Logf("Error gathering sync target: %v", err)
return
}

for _, resource := range syncTarget.Status.SyncedResources {
for _, version := range resource.Versions {
Expand Down

0 comments on commit 3e7ec62

Please sign in to comment.