mirror of
https://github.com/swift-server/RediStack.git
synced 2026-05-03 07:32:28 +00:00
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the RediStack open source project
|
|
//
|
|
// Copyright (c) 2019 Apple Inc. and the RediStack project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of RediStack project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import RediStackTestUtils
|
|
|
|
import class Foundation.ProcessInfo
|
|
|
|
class RediStackIntegrationTestCase: RedisIntegrationTestCase {
|
|
override var redisHostname: String {
|
|
ProcessInfo.processInfo.environment["REDIS_URL"] ?? "localhost"
|
|
}
|
|
override var redisPassword: String? {
|
|
ProcessInfo.processInfo.environment["REDIS_PW"]
|
|
}
|
|
}
|
|
|
|
class RediStackConnectionPoolIntegrationTestCase: RedisConnectionPoolIntegrationTestCase {
|
|
override var redisHostname: String {
|
|
ProcessInfo.processInfo.environment["REDIS_URL"] ?? "localhost"
|
|
}
|
|
override var redisPassword: String? {
|
|
ProcessInfo.processInfo.environment["REDIS_PW"]
|
|
}
|
|
}
|