fixup! finished events tests

This commit is contained in:
Iraq Jaber
2025-05-29 15:40:21 +02:00
parent cc874c99da
commit 1556872bdd
2 changed files with 5 additions and 4 deletions

View File

@@ -10,4 +10,4 @@ CREATE TABLE IF NOT EXISTS zitadel.instances(
updated_at TIMESTAMPTZ DEFAULT NOW(),
deleted_at TIMESTAMPTZ DEFAULT NULL
);
CREATE UNIQUE INDEX instance_name_index ON zitadel.instances (name);
-- CREATE UNIQUE INDEX instance_name_index ON zitadel.instances (name);

View File

@@ -89,9 +89,10 @@ func TestServer_TestInstanceAddReduces(t *testing.T) {
// event instance.default.language.set
require.NotNil(t, instance.DefaultLanguage)
// event instance.added
assert.WithinRange(t, instance.CreatedAt.V, beforeAdd, afterAdd)
assert.WithinRange(t, instance.CreatedAt, beforeAdd, afterAdd)
// event instance.added
assert.WithinRange(t, instance.UpdatedAt.V, beforeAdd, afterAdd)
assert.WithinRange(t, instance.UpdatedAt, beforeAdd, afterAdd)
require.Nil(t, instance.DeletedAt)
}, retryDuration, tick)
}
@@ -160,7 +161,7 @@ func TestServer_TestInstanceDeleteReduces(t *testing.T) {
),
)
// event instance.removed
assert.WithinRange(t, instance.DeletedAt.V, beforeDelete, afterDelete)
assert.WithinRange(t, *instance.DeletedAt, beforeDelete, afterDelete)
require.NoError(ttt, err)
}, retryDuration, tick)
}