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

e2e_test.go fail [TestStakingFailures] #171

Open
prz23 opened this issue Jun 20, 2024 · 0 comments
Open

e2e_test.go fail [TestStakingFailures] #171

prz23 opened this issue Jun 20, 2024 · 0 comments

Comments

@prz23
Copy link

prz23 commented Jun 20, 2024

time="2024-06-20T09:56:48Z" level=info msg="Database closed"
time="2024-06-20T09:56:48Z" level=info msg="Shutdown complete"
--- FAIL: TestStakingFailures (48.60s)
    containers.go:69: 
        
        Running: "[bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=pass getblockcount]"
    bitcoind_node_setup.go:63: failed to get block count: <nil>
    containers.go:69: 
        
        Running: "[bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=pass createwallet test-wallet false false pass false false]"
    containers.go:69: 
        
        Running: "[bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=pass -generate 300]"
    e2e_test.go:998: 
                Error Trace:    /home/btc-staker-bool/itest/e2e_test.go:998
                                                        /home/btc-staker-bool/itest/e2e_test.go:1100
                Error:          Received unexpected error:
                                rpc error: code = NotFound desc = rpc error: code = NotFound desc = account bbn1nvea484trpuz4wu38eu90alslxutj48ahts8wn not found: key not found
                Test:           TestStakingFailures
    e2e_test.go:359: 
                Error Trace:    /home/btc-staker-bool/itest/e2e_test.go:359
                                                        /opt/go/src/runtime/panic.go:626
                                                        /opt/go/src/testing/testing.go:1005
                                                        /home/btc-staker-bool/itest/e2e_test.go:998
                                                        /home/btc-staker-bool/itest/e2e_test.go:1100
                Error:          Received unexpected error:
                                exit status 1
                Test:           TestStakingFailures
FAIL
FAIL    github.com/babylonchain/btc-staker/itest        48.743s
func TestStakingFailures(t *testing.T) {
	numMatureOutputs := uint32(200)
	tm := StartManager(t, numMatureOutputs)
	defer tm.Stop(t)
	tm.insertAllMinedBlocksToBabylon(t)   <--- error

// Insert BTC block header using rpc client
func (bc *BabylonController) InsertBtcBlockHeaders(headers []*wire.BlockHeader) (*pv.RelayerTxResponse, error) {
	msg := &btclctypes.MsgInsertHeaders{
		Signer:  bc.getTxSigner(),
		Headers: chainToChainBytes(headers),
	}

	return bc.reliablySendMsgs([]sdk.Msg{msg})    <---error
}

func (bc *BabylonController) reliablySendMsgs(

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

No branches or pull requests

1 participant