Skip to content

Commit

Permalink
Update test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
a-shumanski authored Jul 1, 2024
1 parent f7fef9b commit 447f772
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,12 @@ func executeAlters(ormService *beeorm.Engine) {

if os.Getenv("PARALLEL_TESTS") == "" || os.Getenv("PARALLEL_TESTS") == "false" {
ormService.GetLocalCache().Clear()
ormService.GetRedis().FlushAll()

Check failure on line 279 in pkg/test/test.go

View workflow job for this annotation

GitHub Actions / Quality & Security checks

File is not `gci`-ed with --skip-generated -s standard,default,prefix(github.com/coretrix/hitrix) (gci)

Check failure on line 279 in pkg/test/test.go

View workflow job for this annotation

GitHub Actions / Quality & Security checks

File is not `gci`-ed with --skip-generated -s standard,default,prefix(github.com/coretrix/hitrix) (gci)
pools := service.DI().App().RedisPools
ormService.GetRedis(pools.Stream).FlushDB()
ormService.GetRedis(pools.Persistent).FlushDB()
ormService.GetRedis(pools.Cache).FlushDB()
ormService.GetRedis(pools.Search).FlushDB()
}

altersSearch := ormService.GetRedisSearchIndexAlters()
Expand Down

0 comments on commit 447f772

Please sign in to comment.