Skip to content

Commit

Permalink
add snapshot test for mirror consensus topic query
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestofIranon committed Feb 12, 2020
1 parent 0be6b6c commit cc125a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .snapshots/TestMirrorConsensusTopicQuery
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
topicID:<topicNum:99 > consensusStartTime:<> consensusEndTime:<seconds:9 nanos:9 > limit:100
17 changes: 17 additions & 0 deletions mirror_consensus_topic_query_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package hedera

import (
"github.com/bradleyjkemp/cupaloy"
"testing"
"time"
)

func TestMirrorConsensusTopicQuery(t *testing.T) {
query := NewMirrorConsensusTopicQuery().
SetTopicID(ConsensusTopicID{Topic: 99}).
SetStartTime(time.Unix(0, 0)).
SetEndTime(time.Unix(9, 9)).
SetLimit(100)

cupaloy.SnapshotT(t, query.pb.String())
}

0 comments on commit cc125a6

Please sign in to comment.