Skip to content

Commit 491b007

Browse files
committed
Add utm
1 parent 00eeb1c commit 491b007

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
[![Documentation](https://img.shields.io/badge/redis-documentation-informational)](https://redis.uptrace.dev/)
66
[![Chat](https://discordapp.com/api/guilds/752070105847955518/widget.png)](https://discord.gg/rWtp5Aj)
77

8-
> :heart: [**Uptrace.dev** - distributed traces, logs, and errors in one place](https://uptrace.dev)
8+
> :heart:
9+
> [**Uptrace.dev** - distributed traces, logs, and errors in one place](https://uptrace.dev?utm_source=gh-redis&utm_campaign=gh-redis-var1)
910
1011
- Join [Discord](https://discord.gg/rWtp5Aj) to ask questions.
1112
- [Documentation](https://redis.uptrace.dev)
@@ -129,24 +130,30 @@ vals, err := rdb.Eval(ctx, "return {KEYS[1],ARGV[1]}", []string{"key"}, "hello")
129130
// custom command
130131
res, err := rdb.Do(ctx, "set", "key", "value").Result()
131132
```
133+
132134
## Run the test
133-
go-redis will start a redis-server and run the test cases.
135+
136+
go-redis will start a redis-server and run the test cases.
134137

135138
The paths of redis-server bin file and redis config file are definded in `main_test.go`:
139+
136140
```
137141
var (
138142
redisServerBin, _ = filepath.Abs(filepath.Join("testdata", "redis", "src", "redis-server"))
139143
redisServerConf, _ = filepath.Abs(filepath.Join("testdata", "redis", "redis.conf"))
140144
)
141145
```
142146

143-
For local testing, you can change the variables to refer to your local files, or create a soft link to the corresponding folder for redis-server and copy the config file to `testdata/redis/`:
147+
For local testing, you can change the variables to refer to your local files, or create a soft link
148+
to the corresponding folder for redis-server and copy the config file to `testdata/redis/`:
149+
144150
```
145151
ln -s /usr/bin/redis-server ./go-redis/testdata/redis/src
146152
cp ./go-redis/testdata/redis.conf ./go-redis/testdata/redis/
147153
```
148154

149155
Lastly, run:
156+
150157
```
151158
go test
152159
```

0 commit comments

Comments
 (0)