1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

fix(ci): add falkordb service

Signed-off-by: monkey92t <golang@88.com>
This commit is contained in:
monkey92t 2024-04-13 01:01:27 +08:00
parent caa75ac3a7
commit 34b656a0a4
3 changed files with 11 additions and 2 deletions

View File

@ -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 }}

View File

@ -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++ {

View File

@ -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())
})