Commit 8e64fd9d authored by inphi's avatar inphi

assert Tx Meta equals in test

parent de1ea955
...@@ -1007,6 +1007,11 @@ func TestSyncServiceBackendQueue(t *testing.T) { ...@@ -1007,6 +1007,11 @@ func TestSyncServiceBackendQueue(t *testing.T) {
if !bytes.Equal(expected, eventTx) { if !bytes.Equal(expected, eventTx) {
t.Fatalf("invalid tx applied") t.Fatalf("invalid tx applied")
} }
expectedMeta, _ := tx.GetMeta().MarshalJSON()
eventTxMeta, _ := event.Txs[0].GetMeta().MarshalJSON()
if !bytes.Equal(expectedMeta, eventTxMeta) {
t.Fatalf("invalid tx meta applied")
}
followerService.chainHeadCh <- core.ChainHeadEvent{} followerService.chainHeadCh <- core.ChainHeadEvent{}
subEvent := <-queueSub.events subEvent := <-queueSub.events
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment