core: fail TestCreateBasicChain when saving the chain

When regenerating RPC server test chain I usually need metadata this test
outputs and the easiest way to get it is make it fail.
This commit is contained in:
Roman Khimov 2020-12-13 19:09:41 +03:00
parent 9a78f1da19
commit e97cd9c032

View file

@ -213,6 +213,7 @@ func TestCreateBasicChain(t *testing.T) {
bw := io.NewBufBinWriter() bw := io.NewBufBinWriter()
txSendRaw.EncodeBinary(bw.BinWriter) txSendRaw.EncodeBinary(bw.BinWriter)
t.Logf("sendrawtransaction: %s", hex.EncodeToString(bw.Bytes())) t.Logf("sendrawtransaction: %s", hex.EncodeToString(bw.Bytes()))
require.False(t, saveChain)
} }
func initBasicChain(t *testing.T, bc *Blockchain) { func initBasicChain(t *testing.T, bc *Blockchain) {