@@ -12,7 +12,7 @@ import {
1212} from "@jest/globals" ;
1313import { BufferReader , BufferWriter } from "protobufjs" ;
1414import { v4 as uuidv4 } from "uuid" ;
15- import { ProtocolVersion , RedisClient , Transaction } from ".." ;
15+ import { GlideClient , ProtocolVersion , Transaction } from ".." ;
1616import { RedisCluster } from "../../utils/TestUtils.js" ;
1717import { redis_request } from "../src/ProtobufMessage" ;
1818import { runBaseTests } from "./SharedTests" ;
@@ -30,15 +30,15 @@ import {
3030/* eslint-disable @typescript-eslint/no-var-requires */
3131
3232type Context = {
33- client : RedisClient ;
33+ client : GlideClient ;
3434} ;
3535
3636const TIMEOUT = 50000 ;
3737
38- describe ( "RedisClient " , ( ) => {
38+ describe ( "GlideClient " , ( ) => {
3939 let testsFailed = 0 ;
4040 let cluster : RedisCluster ;
41- let client : RedisClient ;
41+ let client : GlideClient ;
4242 beforeAll ( async ( ) => {
4343 const standaloneAddresses =
4444 parseCommandLineArgs ( ) [ "standalone-endpoints" ] ;
@@ -106,7 +106,7 @@ describe("RedisClient", () => {
106106 it . each ( [ ProtocolVersion . RESP2 , ProtocolVersion . RESP3 ] ) (
107107 "info without parameters" ,
108108 async ( protocol ) => {
109- client = await RedisClient . createClient (
109+ client = await GlideClient . createClient (
110110 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
111111 ) ;
112112 const result = await client . info ( ) ;
@@ -125,7 +125,7 @@ describe("RedisClient", () => {
125125 it . each ( [ ProtocolVersion . RESP2 , ProtocolVersion . RESP3 ] ) (
126126 "simple select test" ,
127127 async ( protocol ) => {
128- client = await RedisClient . createClient (
128+ client = await GlideClient . createClient (
129129 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
130130 ) ;
131131 let selectResult = await client . select ( 0 ) ;
@@ -149,7 +149,7 @@ describe("RedisClient", () => {
149149 it . each ( [ ProtocolVersion . RESP2 , ProtocolVersion . RESP3 ] ) (
150150 `can send transactions_%p` ,
151151 async ( protocol ) => {
152- client = await RedisClient . createClient (
152+ client = await GlideClient . createClient (
153153 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
154154 ) ;
155155 const transaction = new Transaction ( ) ;
@@ -164,10 +164,10 @@ describe("RedisClient", () => {
164164 it . each ( [ ProtocolVersion . RESP2 , ProtocolVersion . RESP3 ] ) (
165165 "can return null on WATCH transaction failures" ,
166166 async ( protocol ) => {
167- const client1 = await RedisClient . createClient (
167+ const client1 = await GlideClient . createClient (
168168 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
169169 ) ;
170- const client2 = await RedisClient . createClient (
170+ const client2 = await GlideClient . createClient (
171171 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
172172 ) ;
173173 const transaction = new Transaction ( ) ;
@@ -189,7 +189,7 @@ describe("RedisClient", () => {
189189 it . each ( [ ProtocolVersion . RESP2 , ProtocolVersion . RESP3 ] ) (
190190 "object freq transaction test_%p" ,
191191 async ( protocol ) => {
192- const client = await RedisClient . createClient (
192+ const client = await GlideClient . createClient (
193193 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
194194 ) ;
195195
@@ -230,7 +230,7 @@ describe("RedisClient", () => {
230230 it . each ( [ ProtocolVersion . RESP2 , ProtocolVersion . RESP3 ] ) (
231231 "object idletime transaction test_%p" ,
232232 async ( protocol ) => {
233- const client = await RedisClient . createClient (
233+ const client = await GlideClient . createClient (
234234 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
235235 ) ;
236236
@@ -275,7 +275,7 @@ describe("RedisClient", () => {
275275 it . each ( [ ProtocolVersion . RESP2 , ProtocolVersion . RESP3 ] ) (
276276 "object refcount transaction test_%p" ,
277277 async ( protocol ) => {
278- const client = await RedisClient . createClient (
278+ const client = await GlideClient . createClient (
279279 getClientConfigurationOption ( cluster . getAddresses ( ) , protocol ) ,
280280 ) ;
281281
@@ -306,7 +306,7 @@ describe("RedisClient", () => {
306306 options . protocol = protocol ;
307307 options . clientName = clientName ;
308308 testsFailed += 1 ;
309- client = await RedisClient . createClient ( options ) ;
309+ client = await GlideClient . createClient ( options ) ;
310310 return { client, context : { client } } ;
311311 } ,
312312 close : ( context : Context , testSucceeded : boolean ) => {
0 commit comments