Commit a4514643 authored by jiangpeng's avatar jiangpeng Committed by 33cn

relay:update test

parent 18edd0c9
...@@ -354,8 +354,10 @@ func (s *suiteRelay) TestExec_9_QryStatus5() { ...@@ -354,8 +354,10 @@ func (s *suiteRelay) TestExec_9_QryStatus5() {
s.kvdb.On("Get", mock.Anything).Return(heightBytes, nil).Twice() s.kvdb.On("Get", mock.Anything).Return(heightBytes, nil).Twice()
msg, err := s.relay.Query_GetBTCHeaderCurHeight(addrCoins) msg, err := s.relay.Query_GetBTCHeaderCurHeight(addrCoins)
s.Nil(err) s.Nil(err)
//s.T().Log(msg) height, ok := msg.(*ty.ReplayRelayQryBTCHeadHeight)
s.Contains(msg.String(), "curHeight:10 baseHeight:10") s.True(ok)
s.Equal(int64(10), height.CurHeight)
s.Equal(int64(10), height.BaseHeight)
} }
func TestRunSuiteRelay(t *testing.T) { func TestRunSuiteRelay(t *testing.T) {
......
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