20 lines
308 B
Go
20 lines
308 B
Go
package db
|
|
|
|
import (
|
|
"go_dreamfactory/pb"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestFriendAdd(t *testing.T) {
|
|
err := db.Friend_Apply(&pb.Cache_FriendData{
|
|
UserId: "629f159310d6970846f7ef26",
|
|
FriendIds: []string{
|
|
"629f147e3d276120561bfa18",
|
|
},
|
|
})
|
|
|
|
require.Nil(t, err, nil)
|
|
}
|