Skip to content

Commit 9d74edb

Browse files
committed
feat: update nats_test.go and README.md files for nats-slave container and queue configuration
- Add a line to the README.md file to run a docker container for nats-slave - Delete a line from the nats_test.go file that sets the queue to "test" - Add a line to the nats_test.go file that sets the queue to "cluster" Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 222068b commit 9d74edb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ setup the nats server
1313

1414
```sh
1515
docker run -d --name nats-main -p 4222:4222 -p 8222:8222 nats:latest
16+
docker run -d --name nats-slave -p 4223:4222 -p 8223:8222 nats:latest
1617
```
1718

1819
run the test

nats_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestClusteredHost(t *testing.T) {
6060
w := NewWorker(
6161
WithAddr(host, "nats://localhost:4223"),
6262
WithSubj("test"),
63-
WithQueue("test"),
63+
WithQueue("cluster"),
6464
)
6565
q, err := queue.NewQueue(
6666
queue.WithWorker(w),

0 commit comments

Comments
 (0)