Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix internal tests #5

Merged
merged 9 commits into from
Apr 1, 2024
Merged

fix internal tests #5

merged 9 commits into from
Apr 1, 2024

Conversation

DeckerSU
Copy link
Collaborator

@DeckerSU DeckerSU commented Apr 1, 2024

Output of go clean -testcache && go test ./...:

?   	github.com/DeckerSU/rosetta-komodo	[no test files]
?   	github.com/DeckerSU/rosetta-komodo/contrib/address-converter	[no test files]
?   	github.com/DeckerSU/rosetta-komodo/contrib/get-keys	[no test files]
ok  	github.com/DeckerSU/rosetta-komodo/configuration	0.027s
?   	github.com/DeckerSU/rosetta-komodo/komodod	[no test files]
?   	github.com/DeckerSU/rosetta-komodo/komodod/zec	[no test files]
?   	github.com/DeckerSU/rosetta-komodo/mocks/indexer	[no test files]
?   	github.com/DeckerSU/rosetta-komodo/mocks/services	[no test files]
?   	github.com/DeckerSU/rosetta-komodo/utils	[no test files]
ok  	github.com/DeckerSU/rosetta-komodo/indexer	64.029s
ok  	github.com/DeckerSU/rosetta-komodo/komodo	0.034s
ok  	github.com/DeckerSU/rosetta-komodo/komodod/blake2b	0.003s
ok  	github.com/DeckerSU/rosetta-komodo/komodod/btcec	0.755s
ok  	github.com/DeckerSU/rosetta-komodo/komodod/chaincfg	0.002s
ok  	github.com/DeckerSU/rosetta-komodo/komodod/chaincfg/chainhash	0.002s
ok  	github.com/DeckerSU/rosetta-komodo/komodod/txscript	0.333s
ok  	github.com/DeckerSU/rosetta-komodo/komodod/wire	0.239s
ok  	github.com/DeckerSU/rosetta-komodo/komodoutil	0.032s
ok  	github.com/DeckerSU/rosetta-komodo/komodoutil/base58	0.001s
ok  	github.com/DeckerSU/rosetta-komodo/services	0.175s

the default value was set to 30 seconds, which proved
insufficient for indexer tests.
TODO: add real Komodo block for parsing test(s)

Leave only the fixtures that are actually used:

grep -o '"[^"]*\.json"' client_test.go | sort | uniq
remove/disable some tests, etc., now go test ./... working fine.
go clean -testcache && go test ./...
@DeckerSU DeckerSU merged commit b07b685 into main Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant