mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-11 14:24:33 +00:00
16 lines
282 B
Go
16 lines
282 B
Go
package protocol
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGenerateRequestId(t *testing.T) {
|
|
// Force 2 reseed to ensure this is working as expected
|
|
for i := 1; i < 20001; i++ {
|
|
bytes := GenerateRequestId()
|
|
require.Equal(t, 32, len(bytes))
|
|
}
|
|
}
|