mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-14 18:05:12 +00:00
chore: fix some eventual consistent integration testing (#10752)
# Which Problems Are Solved Flakiness in integration tests because of eventual consistentcy. # How the Problems Are Solved Split tests related to feature flags and other eventual consistent resources. # Additional Changes None # Additional Context None Co-authored-by: Marco A. <[email protected]>
This commit is contained in:
@@ -127,6 +127,9 @@ func verifyFactors(t assert.TestingT, factors *session.Factors, creationDate, ch
|
||||
}
|
||||
|
||||
func TestServer_CreateSession(t *testing.T) {
|
||||
lockedUser := createLockedUser(CTX, t)
|
||||
deactivatedUser := createDeactivatedUser(CTX, t)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
req *session.CreateSessionRequest
|
||||
@@ -190,7 +193,7 @@ func TestServer_CreateSession(t *testing.T) {
|
||||
Checks: &session.Checks{
|
||||
User: &session.CheckUser{
|
||||
Search: &session.CheckUser_UserId{
|
||||
UserId: DeactivatedUser.GetUserId(),
|
||||
UserId: deactivatedUser.GetUserId(),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -203,7 +206,7 @@ func TestServer_CreateSession(t *testing.T) {
|
||||
Checks: &session.Checks{
|
||||
User: &session.CheckUser{
|
||||
Search: &session.CheckUser_UserId{
|
||||
UserId: LockedUser.GetUserId(),
|
||||
UserId: lockedUser.GetUserId(),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user