mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-03 07:46:21 +00:00
fix: 过滤入口拒绝日志并强化鉴权边界
This commit is contained in:
1 parent
57914967cb
commit
b92bbf0299
101 files changed
+5872
-828
No files matched your search
@@ -275,6 +275,9 @@ func TestApplyMigrationsFS_TransactionalMigration(t *testing.T) {
|
||||
db, mock, err := sqlmock.New()
|
||||
require.NoError(t, err)
|
||||
defer func() { _ = db.Close() }()
|
||||
// The advisory lock and all migration work must share one session. This also
|
||||
// proves startup cannot self-deadlock when deployments cap the pool at one.
|
||||
db.SetMaxOpenConns(1)
|
||||
|
||||
prepareMigrationsBootstrapExpectations(mock)
|
||||
mock.ExpectQuery("SELECT checksum FROM schema_migrations WHERE filename = \\$1").
|
||||
|
||||
Reference in new issue
Block a user