Skip to content

Commit

Permalink
fix e2e reset env bug
Browse files Browse the repository at this point in the history
Signed-off-by: ycyaoxdu <[email protected]>
  • Loading branch information
ycyaoxdu committed Oct 27, 2022
1 parent a2bfe7f commit 39c516f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ func (tec *TestE2eConfig) ResetEnv() error {
"--context", tec.Cluster().ManagedCluster2().Context(),
"--cluster-name", tec.Cluster().ManagedCluster2().Name(),
)
if err != nil {
// if not joined, just continue
if err != nil && err.Error() != "cluster has not been joined to a hub" {
return err
}

Expand Down

0 comments on commit 39c516f

Please sign in to comment.