Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
fdf72eb5
Commit
fdf72eb5
authored
Apr 22, 2026
by
IanShaw027
Browse files
fix(ci): repair integration repository tests
parent
b13e34f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/repository/auth_identity_legacy_migration_integration_test.go
View file @
fdf72eb5
...
@@ -38,6 +38,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
...
@@ -38,6 +38,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
TRUNCATE TABLE
TRUNCATE TABLE
auth_identity_channels,
auth_identity_channels,
identity_adoption_decisions,
auth_identities,
auth_identities,
auth_identity_migration_reports,
auth_identity_migration_reports,
user_external_identities,
user_external_identities,
...
@@ -235,6 +236,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
...
@@ -235,6 +236,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
TRUNCATE TABLE
TRUNCATE TABLE
auth_identity_channels,
auth_identity_channels,
identity_adoption_decisions,
auth_identities,
auth_identities,
auth_identity_migration_reports,
auth_identity_migration_reports,
user_external_identities,
user_external_identities,
...
@@ -424,6 +426,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
...
@@ -424,6 +426,7 @@ CREATE TABLE IF NOT EXISTS user_external_identities (
TRUNCATE TABLE
TRUNCATE TABLE
auth_identity_channels,
auth_identity_channels,
identity_adoption_decisions,
auth_identities,
auth_identities,
auth_identity_migration_reports,
auth_identity_migration_reports,
user_external_identities,
user_external_identities,
...
...
backend/internal/repository/user_repo_sort_integration_test.go
View file @
fdf72eb5
...
@@ -61,14 +61,14 @@ func (s *UserRepoSuite) TestCreateAndRead_PreservesSignupSourceAndActivityTimest
...
@@ -61,14 +61,14 @@ func (s *UserRepoSuite) TestCreateAndRead_PreservesSignupSourceAndActivityTimest
created
:=
s
.
mustCreateUser
(
&
service
.
User
{
created
:=
s
.
mustCreateUser
(
&
service
.
User
{
Email
:
"identity-meta@example.com"
,
Email
:
"identity-meta@example.com"
,
SignupSource
:
"
github
"
,
SignupSource
:
"
linuxdo
"
,
LastLoginAt
:
&
lastLoginAt
,
LastLoginAt
:
&
lastLoginAt
,
LastActiveAt
:
&
lastActiveAt
,
LastActiveAt
:
&
lastActiveAt
,
})
})
got
,
err
:=
s
.
repo
.
GetByID
(
s
.
ctx
,
created
.
ID
)
got
,
err
:=
s
.
repo
.
GetByID
(
s
.
ctx
,
created
.
ID
)
s
.
Require
()
.
NoError
(
err
)
s
.
Require
()
.
NoError
(
err
)
s
.
Require
()
.
Equal
(
"
github
"
,
got
.
SignupSource
)
s
.
Require
()
.
Equal
(
"
linuxdo
"
,
got
.
SignupSource
)
s
.
Require
()
.
NotNil
(
got
.
LastLoginAt
)
s
.
Require
()
.
NotNil
(
got
.
LastLoginAt
)
s
.
Require
()
.
NotNil
(
got
.
LastActiveAt
)
s
.
Require
()
.
NotNil
(
got
.
LastActiveAt
)
s
.
Require
()
.
True
(
got
.
LastLoginAt
.
Equal
(
lastLoginAt
))
s
.
Require
()
.
True
(
got
.
LastLoginAt
.
Equal
(
lastLoginAt
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment