Skip to content

Commit

Permalink
bug: Fix flaky auth test (#1034)
Browse files Browse the repository at this point in the history
* fix

Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai>

* fix

Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai>

Signed-off-by: Jinjing.Zhou <allenzhou@tensorchord.ai>
  • Loading branch information
VoVAllen authored Oct 17, 2022
1 parent d0134d3 commit 1fb2721
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/home/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ import (
. "github.com/onsi/gomega"
)

var _ = Describe("auth test", func() {
var _ = Describe("auth test", Ordered, func() {
defaultAuthName := "auth_name"
defaultIdentityToken := "default_token"
ac := types.AuthConfig{
Name: defaultAuthName,
IdentityToken: defaultIdentityToken,
}

Describe("create with use", Ordered, func() {
BeforeEach(func() {
Expect(Initialize()).To(Succeed())
})

Describe("create with use", func() {
BeforeAll(func() {
err := GetManager().AuthCreate(ac, true)
Expect(err).NotTo(HaveOccurred())
Expand All @@ -49,7 +53,7 @@ var _ = Describe("auth test", func() {
})
})

Describe("create without use", Ordered, func() {
Describe("create without use", func() {
BeforeAll(func() {
err := GetManager().AuthCreate(ac, false)
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 1fb2721

Please sign in to comment.