Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxins committed Feb 1, 2024
1 parent 232e256 commit 2a349c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion session_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ type _Edge struct {
Name string `nebula:"Name"`
}

func (pool *SessionPool) GetEdges() ([]string, error) {
func (pool *SessionPool) ShowEdges() ([]string, error) {
rs, err := pool.ExecuteAndCheck("SHOW EDGES;")
if err != nil {
return nil, err
Expand Down
8 changes: 4 additions & 4 deletions session_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func TestSessionPoolApplySchema(t *testing.T) {
},
},
}
_, err := sessionPool.CreateTag(tagSchema)
_, err = sessionPool.CreateTag(tagSchema)
if err != nil {
t.Fatal(err)
}
Expand All @@ -412,8 +412,8 @@ func TestSessionPoolApplySchema(t *testing.T) {
t.Fatal(err)
}
assert.Equal(t, 1, len(tags), "should have 1 tag")
assert.Equal(t, "account", tags[0].Name, "tag name should be account")
tag, err := sessionPool.DescribeTag("account")
assert.Equal(t, "account", tags[0], "tag name should be account")
tag, err := sessionPool.DescTag("account")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -444,7 +444,7 @@ func TestSessionPoolApplySchema(t *testing.T) {
}
assert.Equal(t, 1, len(edges), "should have 1 edge")
assert.Equal(t, "account_email", edges[0].Name, "edge name should be account_email")

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client-ssl (1.19)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client-ssl (1.17)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client-ssl (1.21)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client (1.19)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client (1.21)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client-ssl (1.20)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client (1.16)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client (1.17)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client-ssl (1.18)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client-ssl (1.16)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client (1.18)

edges[0].Name undefined (type string has no field or method Name)

Check failure on line 446 in session_pool_test.go

View workflow job for this annotation

GitHub Actions / go-client (1.20)

edges[0].Name undefined (type string has no field or method Name)
edge, err := sessionPool.DescribeEdge("account_email")
edge, err := sessionPool.DescEdge("account_email")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 2a349c9

Please sign in to comment.