Skip to content

Commit

Permalink
fix: gomock calls for new config methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-mocha committed Apr 22, 2023
1 parent 594f764 commit d42a256
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/unittest/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func GetMockMainnetProductionConfig(ctrl *gomock.Controller) *config.MockAppConf
mockConfig.EXPECT().GetEnvironment().Return(config.ProductionEnv).AnyTimes()
mockConfig.EXPECT().GetDripProgramID().Return("dripTrkvSyQKvkyWg7oi4jmeEGMA5scSYowHArJ9Vwk").AnyTimes()
mockConfig.EXPECT().GetServerPort().Return(8080).AnyTimes()
mockConfig.EXPECT().GetSolanaRPCURL().AnyTimes().Return("https://palpable-warmhearted-hexagon.solana-mainnet.discover.quiknode.pro/5793cf44e6e16325347e62d571454890f16e0388/")
mockConfig.EXPECT().GetSolanaWSURL().AnyTimes().Return("wss://palpable-warmhearted-hexagon.solana-mainnet.discover.quiknode.pro/5793cf44e6e16325347e62d571454890f16e0388/")
return mockConfig
}
func GetMockDevnetProductionConfig(ctrl *gomock.Controller) *config.MockAppConfig {
Expand All @@ -49,6 +51,8 @@ func GetMockDevnetProductionConfig(ctrl *gomock.Controller) *config.MockAppConfi
mockConfig.EXPECT().GetEnvironment().Return(config.ProductionEnv).AnyTimes()
mockConfig.EXPECT().GetDripProgramID().Return("dripTrkvSyQKvkyWg7oi4jmeEGMA5scSYowHArJ9Vwk").AnyTimes()
mockConfig.EXPECT().GetServerPort().Return(8080).AnyTimes()
mockConfig.EXPECT().GetSolanaRPCURL().AnyTimes().Return("https://wiser-icy-bush.solana-devnet.discover.quiknode.pro/7288cc56d980336f6fc0508eb1aa73e44fd2efcd/")
mockConfig.EXPECT().GetSolanaWSURL().AnyTimes().Return("wss://wiser-icy-bush.solana-devnet.discover.quiknode.pro/7288cc56d980336f6fc0508eb1aa73e44fd2efcd/")
return mockConfig
}

Expand All @@ -61,6 +65,9 @@ func GetMockDevnetStagingConfig(ctrl *gomock.Controller) *config.MockAppConfig {
mockConfig.EXPECT().GetEnvironment().Return(config.StagingEnv).AnyTimes()
mockConfig.EXPECT().GetDripProgramID().Return("F1NyoZsUhJzcpGyoEqpDNbUMKVvCnSXcCki1nN3ycAeo").AnyTimes()
mockConfig.EXPECT().GetServerPort().Return(8080).AnyTimes()
mockConfig.EXPECT().GetSolanaRPCURL().AnyTimes().Return("https://wiser-icy-bush.solana-devnet.discover.quiknode.pro/7288cc56d980336f6fc0508eb1aa73e44fd2efcd/")
mockConfig.EXPECT().GetSolanaWSURL().AnyTimes().Return("wss://wiser-icy-bush.solana-devnet.discover.quiknode.pro/7288cc56d980336f6fc0508eb1aa73e44fd2efcd/")

return mockConfig
}

Expand Down

0 comments on commit d42a256

Please sign in to comment.