@@ -562,20 +562,20 @@ func TestUpdateRedis(t *testing.T) {
562562 if len (splits ) != 3 {
563563 t .Error ("Unexpected amount of splits" )
564564 }
565- set1 , err := redisClient .SMembers ("SPLITIO.flagSet.set1" )
565+ set1 , _ := redisClient .SMembers ("SPLITIO.flagSet.set1" )
566566 if len (set1 ) != 2 {
567567 t .Error ("set size should be 2" )
568568 }
569569 if ! slices .Contains (set1 , "split1" ) || ! slices .Contains (set1 , "split2" ) {
570570 t .Error ("Split missing in set" )
571571 }
572- tt , err := redisClient .Get ("SPLITIO.trafficType.user" )
573- ttCount , _ := strconv .ParseFloat (tt , 10 )
572+ tt , _ := redisClient .Get ("SPLITIO.trafficType.user" )
573+ ttCount , _ := strconv .ParseFloat (tt , 64 )
574574 if ttCount != 3 {
575575 t .Error ("Split should exist" )
576576 }
577- till , err := redisClient .Get ("SPLITIO.splits.till" )
578- tillInt , _ := strconv .ParseFloat (till , 10 )
577+ till , _ := redisClient .Get ("SPLITIO.splits.till" )
578+ tillInt , _ := strconv .ParseFloat (till , 64 )
579579 if tillInt != 1 {
580580 t .Error ("ChangeNumber should be 1" )
581581 }
@@ -587,29 +587,29 @@ func TestUpdateRedis(t *testing.T) {
587587 if len (splits ) != 3 {
588588 t .Error ("Unexpected size" )
589589 }
590- set1 , err = redisClient .SMembers ("SPLITIO.flagSet.set1" )
590+ set1 , _ = redisClient .SMembers ("SPLITIO.flagSet.set1" )
591591 if len (set1 ) != 0 {
592592 t .Error ("set size should be 0" )
593593 }
594- set3 , err := redisClient .SMembers ("SPLITIO.flagSet.set3" )
594+ set3 , _ := redisClient .SMembers ("SPLITIO.flagSet.set3" )
595595 if len (set3 ) != 3 {
596596 t .Error ("set size should be 3" )
597597 }
598598 if ! slices .Contains (set3 , "split3" ) || ! slices .Contains (set3 , "split4" ) || ! slices .Contains (set3 , "split5" ) {
599599 t .Error ("Split missing in set" )
600600 }
601- tt , err = redisClient .Get ("SPLITIO.trafficType.user" )
602- ttCount , _ = strconv .ParseFloat (tt , 10 )
601+ tt , _ = redisClient .Get ("SPLITIO.trafficType.user" )
602+ ttCount , _ = strconv .ParseFloat (tt , 64 )
603603 if ttCount != 3 {
604604 t .Error ("Unexpected trafficType occurrences" )
605605 }
606606
607- split1 , err := redisClient .Get ("SPLITIO.split.split1" )
607+ split1 , _ := redisClient .Get ("SPLITIO.split.split1" )
608608 if split1 != "" {
609609 t .Error ("Split should not exist" )
610610 }
611- till , err = redisClient .Get ("SPLITIO.splits.till" )
612- tillInt , _ = strconv .ParseFloat (till , 10 )
611+ till , _ = redisClient .Get ("SPLITIO.splits.till" )
612+ tillInt , _ = strconv .ParseFloat (till , 64 )
613613 if tillInt != 2 {
614614 t .Error ("ChangeNumber should be 2" )
615615 }
@@ -649,15 +649,15 @@ func TestUpdateWithFlagSetFiltersRedis(t *testing.T) {
649649 if len (splits ) != 3 {
650650 t .Error ("Unexpected amount of splits" )
651651 }
652- set1 , err := redisClient .SMembers ("SPLITIO.flagSet.set1" )
652+ set1 , _ := redisClient .SMembers ("SPLITIO.flagSet.set1" )
653653 if len (set1 ) != 2 {
654654 t .Error ("set size should be 2" )
655655 }
656- set2 , err := redisClient .SMembers ("SPLITIO.flagSet.set2" )
656+ set2 , _ := redisClient .SMembers ("SPLITIO.flagSet.set2" )
657657 if len (set2 ) != 1 {
658658 t .Error ("set size should be 1" )
659659 }
660- set3 , err := redisClient .SMembers ("SPLITIO.flagSet.set3" )
660+ set3 , _ := redisClient .SMembers ("SPLITIO.flagSet.set3" )
661661 if len (set3 ) != 0 {
662662 t .Error ("set size should be 0" )
663663 }
0 commit comments