Skip to content

Commit

Permalink
Fixed keycloak issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WilSimpson committed Mar 14, 2024
1 parent ce415ab commit 023f5cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/srv/srv_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ func TestSrv(t *testing.T) {
)
Expect(err).NotTo(HaveOccurred())

// Eventually(func() error {
*admin.ID, err = keycloak.CreateUser(context.Background(), clientToken.AccessToken, conf.Character.Keycloak.Realm, admin)
Expect(err).NotTo(HaveOccurred())
// }).Within(time.Minute).ProbeEvery(time.Second).ShouldNot(HaveOccurred())
*player.ID, err = keycloak.CreateUser(context.Background(), clientToken.AccessToken, conf.Character.Keycloak.Realm, player)
Expect(err).NotTo(HaveOccurred())
*guest.ID, err = keycloak.CreateUser(context.Background(), clientToken.AccessToken, conf.Character.Keycloak.Realm, guest)
Expand Down Expand Up @@ -227,7 +229,9 @@ func TestSrv(t *testing.T) {

SynchronizedAfterSuite(func() {
}, func() {
closeFunc()
if closeFunc != nil {
closeFunc()
}
})

RegisterFailHandler(Fail)
Expand Down

0 comments on commit 023f5cc

Please sign in to comment.