fix appRevision label getting overridden (#1293)

* fix lable getting overidden

* randomize namespace
This commit is contained in:
Ryan Zhang
2021-03-25 02:28:17 -07:00
committed by GitHub
parent b726481e7a
commit efa5078d81
3 changed files with 70 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ package controllers_test
import (
"context"
"fmt"
"math/rand"
"strconv"
"time"
. "github.com/onsi/ginkgo"
@@ -230,7 +232,7 @@ var _ = Describe("Cloneset based rollout tests", func() {
BeforeEach(func() {
By("Start to run a test, clean up previous resources")
namespace = "rolling-e2e-test" // + "-" + strconv.FormatInt(rand.Int63(), 16)
namespace = "rolling-e2e-test" + "-" + strconv.FormatInt(rand.Int63(), 16)
createNamespace(namespace)
})