Skip to content

Commit 725f706

Browse files
committed
fix: correct timing-out test
Signed-off-by: Simon Gellis <simongellis@gmail.com>
1 parent 0c170a7 commit 725f706

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/blockchain/cardano/cardano_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,12 @@ func TestInitAndStartWithCardanoConnect(t *testing.T) {
173173
fromServer <- `[]` // empty batch, will be ignored, but acked
174174
reply := <-toServer
175175
assert.Equal(t, `{"type":"ack","topic":"topic1/ns1"}`, reply)
176-
fromServer <- `["different kind of bad batch"]`
177-
fromServer <- `[{}]` // bad batch
176+
fromServer <- `["different kind of bad batch"]` // bad batch, will be ignored but acked
177+
reply = <-toServer
178+
assert.Equal(t, `{"type":"ack","topic":"topic1/ns1"}`, reply)
179+
fromServer <- `[{}]` // bad batch, will be ignored but acked
180+
reply = <-toServer
181+
assert.Equal(t, `{"type":"ack","topic":"topic1/ns1"}`, reply)
178182

179183
// Bad data will be ignored
180184
fromServer <- `!json`

0 commit comments

Comments
 (0)