@@ -320,7 +320,7 @@ void putTimeSeries(RedisTestContext redis) {
320320 new SchemaAndValue (Schema .FLOAT64_SCHEMA , value )));
321321 }
322322 put (topic , RedisSinkConfig .DataType .TIMESERIES , redis , records );
323- List <Sample > actualSamples = redis .sync ().range (topic , TimeRange .unbounded ());
323+ List <Sample > actualSamples = redis .sync ().tsRange (topic , TimeRange .unbounded ());
324324 assertEquals (expectedSamples .size (), actualSamples .size ());
325325 for (int index = 0 ; index < expectedSamples .size (); index ++) {
326326 Sample expectedSample = expectedSamples .get (index );
@@ -362,8 +362,8 @@ void putRpush(RedisTestContext redis) {
362362 records .add (SinkRecordHelper .write (topic , new SchemaAndValue (Schema .STRING_SCHEMA , member ),
363363 new SchemaAndValue (Schema .STRING_SCHEMA , member )));
364364 }
365- put (topic , RedisSinkConfig .DataType .LIST , redis , records ,
366- RedisSinkConfig .PUSH_DIRECTION_CONFIG , RedisSinkConfig . PushDirection .RIGHT .name ());
365+ put (topic , RedisSinkConfig .DataType .LIST , redis , records , RedisSinkConfig . PUSH_DIRECTION_CONFIG ,
366+ RedisSinkConfig .PushDirection .RIGHT .name ());
367367 List <String > actual = redis .sync ().lrange (topic , 0 , -1 );
368368 assertEquals (expected , actual );
369369 }
@@ -477,13 +477,13 @@ void putZset(RedisTestContext context) {
477477 assertEquals (expected , actual );
478478 }
479479
480- public void put (String topic , RedisSinkConfig .DataType type , RedisTestContext context ,
481- List < SinkRecord > records , String ... props ) {
480+ public void put (String topic , RedisSinkConfig .DataType type , RedisTestContext context , List < SinkRecord > records ,
481+ String ... props ) {
482482 SinkTaskContext taskContext = mock (SinkTaskContext .class );
483483 when (taskContext .assignment ()).thenReturn (ImmutableSet .of (new TopicPartition (topic , 1 )));
484484 task .initialize (taskContext );
485- Map <String , String > propsMap = map (RedisSinkConfig .URI_CONFIG ,
486- context . getServer (). getRedisURI (), RedisSinkConfig .TYPE_CONFIG , type .name ());
485+ Map <String , String > propsMap = map (RedisSinkConfig .URI_CONFIG , context . getServer (). getRedisURI (),
486+ RedisSinkConfig .TYPE_CONFIG , type .name ());
487487 propsMap .putAll (map (props ));
488488 task .start (propsMap );
489489 task .put (records );
0 commit comments