refactor: Kotest 병렬 실행 + Region Sql 데이터 초기화에서 발생하는 FK 제약조건 해소를 위한 regionCode 임시 Null 처리

This commit is contained in:
이상진 2025-09-13 12:55:17 +09:00
parent 671243b9b1
commit c832410160
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ create table if not exists users(
email varchar(255) not null, email varchar(255) not null,
password varchar(255) not null, password varchar(255) not null,
phone varchar(20) not null, phone varchar(20) not null,
region_code varchar(10) not null, region_code varchar(10) null,
status varchar(20) not null, status varchar(20) not null,
created_at timestamp not null, created_at timestamp not null,
created_by bigint not null, created_by bigint not null,

View File

@ -72,7 +72,7 @@ object UserFixture {
email: String = "sample@example.com", email: String = "sample@example.com",
password: String = "a".repeat(MIN_PASSWORD_LENGTH), password: String = "a".repeat(MIN_PASSWORD_LENGTH),
phone: String = "01012345678", phone: String = "01012345678",
regionCode: String = "1130510300", regionCode: String? = null,
status: UserStatus = UserStatus.ACTIVE status: UserStatus = UserStatus.ACTIVE
): UserEntity = UserEntity( ): UserEntity = UserEntity(
id = id, id = id,
@ -89,7 +89,7 @@ object UserFixture {
email = "sample@example.com", email = "sample@example.com",
password = "a".repeat(MIN_PASSWORD_LENGTH), password = "a".repeat(MIN_PASSWORD_LENGTH),
phone = "01012345678", phone = "01012345678",
regionCode = "1130510300" regionCode = null
) )
} }