Files
RediStack/Tests/RediStackIntegrationTests/RediStackIntegrationTestCase.swift
T
2024-11-08 14:09:10 +09:00

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"]
}
}