@@ -889,7 +889,10 @@ func TestCacheAllSafeRequests(t *testing.T) {
889
889
t .Skip () // DeleteScanMatch interferes with other tests.
890
890
891
891
ts := StartTest (nil )
892
+
892
893
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
894
+ cache .Connect ()
895
+
893
896
t .Cleanup (func () {
894
897
ts .Close ()
895
898
cache .DeleteScanMatch ("*" )
@@ -919,7 +922,10 @@ func TestCacheAllSafeRequestsWithCachedHeaders(t *testing.T) {
919
922
t .Skip () // DeleteScanMatch interferes with other tests.
920
923
921
924
ts := StartTest (nil )
925
+
922
926
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
927
+ cache .Connect ()
928
+
923
929
t .Cleanup (func () {
924
930
ts .Close ()
925
931
cache .DeleteScanMatch ("*" )
@@ -965,7 +971,10 @@ func TestCacheWithAdvanceUrlRewrite(t *testing.T) {
965
971
t .Skip () // DeleteScanMatch interferes with other tests.
966
972
967
973
ts := StartTest (nil )
974
+
968
975
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
976
+ cache .Connect ()
977
+
969
978
t .Cleanup (func () {
970
979
ts .Close ()
971
980
cache .DeleteScanMatch ("*" )
@@ -1024,7 +1033,10 @@ func TestCachePostRequest(t *testing.T) {
1024
1033
t .Skip () // DeleteScanMatch interferes with other tests.
1025
1034
1026
1035
ts := StartTest (nil )
1036
+
1027
1037
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
1038
+ cache .Connect ()
1039
+
1028
1040
t .Cleanup (func () {
1029
1041
ts .Close ()
1030
1042
cache .DeleteScanMatch ("*" )
@@ -1071,7 +1083,10 @@ func TestAdvanceCachePutRequest(t *testing.T) {
1071
1083
t .Skip () // DeleteScanMatch interferes with other tests.
1072
1084
1073
1085
ts := StartTest (nil )
1086
+
1074
1087
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
1088
+ cache .Connect ()
1089
+
1075
1090
t .Cleanup (func () {
1076
1091
ts .Close ()
1077
1092
cache .DeleteScanMatch ("*" )
@@ -1164,7 +1179,10 @@ func TestCacheAllSafeRequestsWithAdvancedCacheEndpoint(t *testing.T) {
1164
1179
t .Skip () // DeleteScanMatch interferes with other tests.
1165
1180
1166
1181
ts := StartTest (nil )
1182
+
1167
1183
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
1184
+ cache .Connect ()
1185
+
1168
1186
t .Cleanup (func () {
1169
1187
ts .Close ()
1170
1188
cache .DeleteScanMatch ("*" )
@@ -1203,7 +1221,9 @@ func TestCacheEtag(t *testing.T) {
1203
1221
t .Skip () // DeleteScanMatch interferes with other tests.
1204
1222
1205
1223
ts := StartTest (nil )
1224
+
1206
1225
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
1226
+ cache .Connect ()
1207
1227
1208
1228
t .Cleanup (func () {
1209
1229
ts .Close ()
@@ -1258,7 +1278,10 @@ func TestOldCachePlugin(t *testing.T) {
1258
1278
t .Helper ()
1259
1279
1260
1280
ts := StartTest (nil )
1281
+
1261
1282
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
1283
+ cache .Connect ()
1284
+
1262
1285
t .Cleanup (func () {
1263
1286
ts .Close ()
1264
1287
cache .DeleteScanMatch ("*" )
@@ -1287,7 +1310,10 @@ func TestAdvanceCacheTimeoutPerEndpoint(t *testing.T) {
1287
1310
t .Skip () // DeleteScanMatch interferes with other tests.
1288
1311
1289
1312
ts := StartTest (nil )
1313
+
1290
1314
cache := storage.RedisCluster {KeyPrefix : "cache-" , ConnectionHandler : ts .Gw .StorageConnectionHandler }
1315
+ cache .Connect ()
1316
+
1291
1317
t .Cleanup (func () {
1292
1318
ts .Close ()
1293
1319
cache .DeleteScanMatch ("*" )
0 commit comments