mirror of
1
Fork 0

chore: update mock redis client

- Follow up of #5173
This commit is contained in:
Gusted 2024-09-01 05:36:00 +02:00
parent 38eab5342d
commit c2e11058bb
No known key found for this signature in database
GPG Key ID: FD821B732837125F
3 changed files with 72 additions and 7191 deletions

View File

@ -1003,7 +1003,7 @@ generate-gitignore:
.PHONY: generate-gomock
generate-gomock:
$(GO) run $(GOMOCK_PACKAGE) -package mock -destination ./modules/queue/mock/redisuniversalclient.go github.com/redis/go-redis/v9 UniversalClient
$(GO) run $(GOMOCK_PACKAGE) -package mock -destination ./modules/queue/mock/redisuniversalclient.go code.gitea.io/gitea/modules/nosql RedisClient
.PHONY: generate-images
generate-images: | node_modules

View File

@ -72,7 +72,7 @@ func (suite *baseRedisUnitTestSuite) TestBasic() {
// Configure expectations.
mockRedisStore := mock.NewInMemoryMockRedis()
redisClient := mock.NewMockUniversalClient(suite.mockController)
redisClient := mock.NewMockRedisClient(suite.mockController)
redisClient.EXPECT().
Ping(gomock.Any()).

File diff suppressed because it is too large Load Diff