Skip to content

Commit

Permalink
fix(ci): add falkordb service
Browse files Browse the repository at this point in the history
Signed-off-by: monkey92t <golang@88.com>
  • Loading branch information
monkey92t committed Apr 12, 2024
1 parent caa75ac commit 34b656a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 6379:6379
falkordb:
image: falkordb/falkordb:edge
options: >-
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 36379:6379

steps:
- name: Set up ${{ matrix.go-version }}
Expand Down
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5627,7 +5627,7 @@ func (cmd *GraphCmd) readGraph(rd *proto.Reader) error {
return err
}

// node = 3, id +labels +properties
// node = 3, id +labels + properties
func (cmd *GraphCmd) readNode(rd *proto.Reader) (GraphNode, error) {
node := GraphNode{}
for j := 0; j < 3; j++ {
Expand Down
5 changes: 4 additions & 1 deletion graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ var _ = Describe("Client", func() {
var graph = "test-graph"

BeforeEach(func() {
client = redis.NewClient(redisOptions())
// redisgraph / falkordb
opt := redisOptions()
opt.Addr = ":36379"
client = redis.NewClient(opt)
Expect(client.FlushDB(ctx).Err()).NotTo(HaveOccurred())
})

Expand Down

0 comments on commit 34b656a

Please sign in to comment.