Fix return type of RequestMessages (hash instead of bool)

This commit is contained in:
Pedro Pombeiro 2018-06-20 17:41:22 +02:00 committed by Pedro Pombeiro
parent 56cc3d20da
commit 58a8135a87
1 changed files with 2 additions and 2 deletions

View File

@ -79,13 +79,13 @@ func testMailserverPeer(t *testing.T) {
ok, err := shhAPI.MarkTrustedPeer(context.TODO(), *peerURL)
require.NoError(t, err)
require.True(t, ok)
ok, err = shhextAPI.RequestMessages(context.TODO(), shhext.MessagesRequest{
hash, err := shhextAPI.RequestMessages(context.TODO(), shhext.MessagesRequest{
MailServerPeer: *peerURL,
SymKeyID: symKeyID,
Topic: topic,
})
require.NoError(t, err)
require.True(t, ok)
require.NotNil(t, hash)
// wait for all messages
require.NoError(t, waitForMessages(t, *msgCount, shhAPI, filterID))
}