Skip to content

Commit a7940f1

Browse files
committed
Redis connection string
1 parent 0f80487 commit a7940f1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ matrix:
88
env: TARANTOOL_VERSION= TEST_FILTER='--filter "Tarantool!=1.8"'
99
- os: osx
1010
osx_image: xcode9.2
11-
env: TARANTOOL_VERSION=--HEAD TEST_FILTER='--filter "Tarantool==1.8"'
11+
env: TARANTOOL_VERSION=--HEAD TEST_FILTER='--filter "Tarantool=1.8"'
1212

1313
before_install:
1414
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ./scripts/ubuntu-prereqs.sh ; fi

docker-compose.tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
environment:
88
TARANTOOL_1_7_REPLICATION_SOURCE: "tarantool_1_7:3301"
99
TARANTOOL_1_8_REPLICATION_SOURCE: "tarantool_1_8:3301"
10+
REDIS_HOST: redis
1011
links:
1112
- tarantool_1_7
1213
- tarantool_1_8

tests/progaudi.tarantool.tests/ConnectionStringFactory.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ public static string GetReplicationSource_1_8(string userName = null)
1919

2020
public static async Task<string> GetRedisConnectionString()
2121
{
22-
var tarantoolUrl = Environment.GetEnvironmentVariable("TARANTOOL_1_7_REPLICATION_SOURCE");
22+
var redisUrl = Environment.GetEnvironmentVariable("REDIS_HOST");
2323

2424
var host = "127.0.0.1";
25-
if (tarantoolUrl != null)
25+
if (!string.IsNullOrWhiteSpace(redisUrl))
2626
{
27-
var resolved = await Dns.GetHostAddressesAsync("redis");
27+
var resolved = await Dns.GetHostAddressesAsync(redisUrl);
2828
host = resolved.First().ToString();
2929
}
3030

0 commit comments

Comments
 (0)