Skip to content

Commit

Permalink
add mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed Oct 14, 2024
1 parent aafeb9c commit e3a7c58
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ run-local:

generate-mock-interface:
cd internal/db && mockery --name=DbInterface --output=../../tests/mocks --outpkg=mocks --filename=mock_db_client.go
cd internal/btcclient && mockery --name=BtcInterface --output=../../tests/mocks --outpkg=mocks --filename=mock_btc_client.go
cd internal/clients/btcclient && mockery --name=BtcInterface --output=../../../tests/mocks --outpkg=mocks --filename=mock_btc_client.go
cd internal/clients/bbnclient && mockery --name=BbnInterface --output=../../../tests/mocks --outpkg=mocks --filename=mock_bbn_client.go

test:
./bin/local-startup.sh;
Expand Down
2 changes: 2 additions & 0 deletions config/config-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ btc:
bbn:
rpc-addr: https://rpc.devnet.babylonchain.io:443
timeout: 30s
poller:
param-polling-interval: 60s
queue:
queue_user: user # can be replaced by values in .env file
queue_password: password
Expand Down
2 changes: 1 addition & 1 deletion config/config-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bbn:
rpc-addr: https://rpc.devnet.babylonchain.io:443
timeout: 30s
poller:
param-polling-interval: 10s
param-polling-interval: 30s
queue:
queue_user: user # can be replaced by values in .env file
queue_password: password
Expand Down
161 changes: 161 additions & 0 deletions tests/mocks/mock_bbn_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions tests/mocks/mock_btc_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 25 additions & 5 deletions tests/mocks/mock_db_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3a7c58

Please sign in to comment.