mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-12 14:54:19 +00:00
b81bd6ff30
Add test for rpc services
16 lines
273 B
Go
16 lines
273 B
Go
package rpc
|
|
|
|
import (
|
|
"bytes"
|
|
"net/http"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func makeRequest(t *testing.T) *http.Request {
|
|
request, err := http.NewRequest(http.MethodPost, "url", bytes.NewReader([]byte("")))
|
|
require.NoError(t, err)
|
|
return request
|
|
}
|