mirror of https://github.com/status-im/go-waku.git
fix: typo
This commit is contained in:
parent
08c5c2303e
commit
a7c76d2af1
|
@ -48,10 +48,10 @@ func makeWakuFilter(t *testing.T) (*WakuFilter, host.Host) {
|
||||||
//
|
//
|
||||||
// Node1 and Node2 are peers
|
// Node1 and Node2 are peers
|
||||||
//
|
//
|
||||||
// Node2 send a succesful message with topic A
|
// Node2 send a successful message with topic A
|
||||||
// Node1 receive the message
|
// Node1 receive the message
|
||||||
//
|
//
|
||||||
// Node2 send a succesful message with topic B
|
// Node2 send a successful message with topic B
|
||||||
// Node1 doesn't receive the message
|
// Node1 doesn't receive the message
|
||||||
func TestWakuFilter(t *testing.T) {
|
func TestWakuFilter(t *testing.T) {
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) // Test can't exceed 10 seconds
|
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) // Test can't exceed 10 seconds
|
||||||
|
|
|
@ -41,7 +41,7 @@ func makeWakuRelay(t *testing.T, topic relay.Topic) (*relay.WakuRelay, *relay.Su
|
||||||
// Client and Node 2 are peers
|
// Client and Node 2 are peers
|
||||||
// Node 3 will use lightpush request, sending the message to Node2
|
// Node 3 will use lightpush request, sending the message to Node2
|
||||||
//
|
//
|
||||||
// Client send a succesful message using lightpush
|
// Client send a successful message using lightpush
|
||||||
// Node2 receive the message and broadcast it
|
// Node2 receive the message and broadcast it
|
||||||
// Node1 receive the message
|
// Node1 receive the message
|
||||||
func TestWakuLightPush(t *testing.T) {
|
func TestWakuLightPush(t *testing.T) {
|
||||||
|
@ -103,7 +103,7 @@ func TestWakuLightPush(t *testing.T) {
|
||||||
<-sub2.C
|
<-sub2.C
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Verifying succesful request
|
// Verifying successful request
|
||||||
resp, err := client.request(ctx, req)
|
resp, err := client.request(ctx, req)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.True(t, resp.IsSuccess)
|
require.True(t, resp.IsSuccess)
|
||||||
|
|
Loading…
Reference in New Issue