You've already forked pigallery2
							
							
				mirror of
				https://github.com/bpatrik/pigallery2.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Fixing failing Album tests #45
This commit is contained in:
		| @@ -4,7 +4,7 @@ import {columnCharsetCS} from '../EntityUtils'; | ||||
| import {AlbumBaseDTO} from '../../../../../../common/entities/album/AlbumBaseDTO'; | ||||
|  | ||||
| @Entity() | ||||
| @TableInheritance({column: {type: 'varchar', name: 'type', length: 16}}) | ||||
| @TableInheritance({column: {type: 'varchar', name: 'type', length: 24}}) | ||||
| export class AlbumBaseEntity implements AlbumBaseDTO { | ||||
|  | ||||
|   @Index() | ||||
|   | ||||
| @@ -38,7 +38,7 @@ export class DBTestHelper { | ||||
|  | ||||
|   static enable = { | ||||
|     memory: false, | ||||
|     sqlite: true, | ||||
|     sqlite: process.env.TEST_SQLITE !== 'false', | ||||
|     mysql: process.env.TEST_MYSQL !== 'false' | ||||
|   }; | ||||
|   public static readonly savedDescribe = savedDescribe; | ||||
| @@ -144,6 +144,7 @@ export class DBTestHelper { | ||||
|   } | ||||
|  | ||||
|   private async resetMySQL(): Promise<void> { | ||||
|     await ObjectManagers.reset(); | ||||
|     Config.Server.Database.type = DatabaseType.mysql; | ||||
|     Config.Server.Database.mysql.database = 'pigallery2_test'; | ||||
|     const conn = await SQLConnection.getConnection(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user