Skip to content

Commit

Permalink
Now?
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Oct 16, 2023
1 parent f94a34a commit 89e26e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ services:

toxiproxy:
image: ghcr.io/shopify/toxiproxy:2.6.0
command: -config=/config/toxiproxy.json -host 0.0.0.0
command: -config=/config/toxiproxy.json
volumes:
- ./test/toxiproxy_config.json:/config/toxiproxy.json
ports:
- "8474:8474"
- "19052:9042"
- "19152:9043"
6 changes: 0 additions & 6 deletions test/toxiproxy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
"listen": "[::]:9042",
"upstream": "cassandra:9042",
"enabled": true
},
{
"name": "xandra_test_cassandra_sliced",
"listen": "[::]:9043",
"upstream": "cassandra:9042",
"enabled": true
}
]
2 changes: 1 addition & 1 deletion test/xandra_toxiproxy_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule XandraToxiproxyTest do
ToxiproxyEx.get!(:xandra_test_cassandra_sliced)
|> ToxiproxyEx.toxic(:slicer, average_size: 50, size_variation: 25, delay: _microsec = 50)
|> ToxiproxyEx.apply!(fn ->
opts = Keyword.merge(opts, nodes: ["127.0.0.1:19152"], keyspace: keyspace)
opts = Keyword.merge(opts, nodes: ["127.0.0.1:19052"], keyspace: keyspace)
conn = start_supervised!({Xandra, opts})
assert {:ok, prepared} = Xandra.prepare(conn, "SELECT * FROM system.local WHERE key = ?")
assert {:ok, page} = Xandra.execute(conn, prepared, ["local"])
Expand Down

0 comments on commit 89e26e8

Please sign in to comment.