mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 19:11:58 +01:00
parent
38eab5342d
commit
c2e11058bb
3 changed files with 72 additions and 7191 deletions
2
Makefile
2
Makefile
|
@ -1003,7 +1003,7 @@ generate-gitignore:
|
||||||
|
|
||||||
.PHONY: generate-gomock
|
.PHONY: generate-gomock
|
||||||
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
|
.PHONY: generate-images
|
||||||
generate-images: | node_modules
|
generate-images: | node_modules
|
||||||
|
|
|
@ -72,7 +72,7 @@ func (suite *baseRedisUnitTestSuite) TestBasic() {
|
||||||
|
|
||||||
// Configure expectations.
|
// Configure expectations.
|
||||||
mockRedisStore := mock.NewInMemoryMockRedis()
|
mockRedisStore := mock.NewInMemoryMockRedis()
|
||||||
redisClient := mock.NewMockUniversalClient(suite.mockController)
|
redisClient := mock.NewMockRedisClient(suite.mockController)
|
||||||
|
|
||||||
redisClient.EXPECT().
|
redisClient.EXPECT().
|
||||||
Ping(gomock.Any()).
|
Ping(gomock.Any()).
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue