mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
updating test case
This commit is contained in:
parent
db5f6c8bb6
commit
873e35a292
@ -106,7 +106,7 @@ func SendEndpointTest(
|
|||||||
// |
|
// |
|
||||||
// connected,group ,
|
// connected,group ,
|
||||||
// | |
|
// | |
|
||||||
// | confirmed,nogroup pending,nogroup |
|
// | , pending,nogroup |
|
||||||
// |/ \|
|
// |/ \|
|
||||||
// C --- connected,group connected,group --- D
|
// C --- connected,group connected,group --- D
|
||||||
//
|
//
|
||||||
@ -192,9 +192,6 @@ func AddTestGroup(prefix string) (*TestGroup, error) {
|
|||||||
if g.C.A.GroupId, err = GroupTestCard(g.C.Token, g.C.A.CardId); err != nil {
|
if g.C.A.GroupId, err = GroupTestCard(g.C.Token, g.C.A.CardId); err != nil {
|
||||||
return g, err
|
return g, err
|
||||||
}
|
}
|
||||||
if g.C.B.CardId, err = AddTestCard(g.C.Token, g.B.Token); err != nil {
|
|
||||||
return g, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// setup D
|
// setup D
|
||||||
if g.D.C.CardId, err = AddTestCard(g.D.Token, g.C.Token); err != nil {
|
if g.D.C.CardId, err = AddTestCard(g.D.Token, g.C.Token); err != nil {
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUpdateContact(t *testing.T) {
|
func TestUpdateProfile(t *testing.T) {
|
||||||
// setup testing group
|
// setup testing group
|
||||||
set, err := AddTestGroup("updatecontact")
|
set, err := AddTestGroup("updateprofile")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
PrintMsg(set)
|
PrintMsg(set)
|
Loading…
Reference in New Issue
Block a user