mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
transport/publisher.go: rename to writer.go
This commit is contained in:
parent
b3f773655d
commit
f9fc88b0fb
4 changed files with 20 additions and 20 deletions
|
|
@ -18,8 +18,8 @@ func TestPublisher_Publish(t *testing.T) {
|
|||
mock.ExpectPublish("ship::id::test", []byte("some string")).SetVal(0)
|
||||
mock.ExpectPublish("ship::id::test2", []byte("some other string")).SetVal(0)
|
||||
|
||||
assert.NoError(t, pub.Publish(transport.Channel{"test"}, []byte("some string")))
|
||||
assert.NoError(t, pub.Publish(transport.Channel{"test2"}, []byte("some other string")))
|
||||
assert.NoError(t, pub.Write(transport.Channel{"test"}, []byte("some string")))
|
||||
assert.NoError(t, pub.Write(transport.Channel{"test2"}, []byte("some other string")))
|
||||
assert.NoError(t, pub.Flush())
|
||||
|
||||
assert.NoError(t, mock.ExpectationsWereMet())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue