@@ -14,6 +14,7 @@ import (
14
14
15
15
"github.com/stretchr/testify/assert"
16
16
"github.com/stretchr/testify/require"
17
+ "github.com/tarantool/go-iproto"
17
18
"github.com/vmihailenco/msgpack/v5"
18
19
19
20
"github.com/tarantool/go-tarantool/v2"
@@ -2832,7 +2833,7 @@ func TestConnectionPool_NewWatcher_noWatchersFeature(t *testing.T) {
2832
2833
roles := []bool {true , false , false , true , true }
2833
2834
2834
2835
opts := connOpts .Clone ()
2835
- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {}
2836
+ opts .RequiredProtocolInfo .Features = []iproto. Feature {}
2836
2837
err := test_helpers .SetClusterRO (servers , opts , roles )
2837
2838
require .Nilf (t , err , "fail to set roles for cluster" )
2838
2839
@@ -2847,8 +2848,8 @@ func TestConnectionPool_NewWatcher_noWatchersFeature(t *testing.T) {
2847
2848
func (event tarantool.WatchEvent ) {}, pool .ANY )
2848
2849
require .Nilf (t , watcher , "watcher must not be created" )
2849
2850
require .NotNilf (t , err , "an error is expected" )
2850
- expected := "the feature WatchersFeature must be required by connection " +
2851
- "options to create a watcher"
2851
+ expected := "the feature IPROTO_FEATURE_WATCHERS must be required by " +
2852
+ "connection options to create a watcher"
2852
2853
require .Equal (t , expected , err .Error ())
2853
2854
}
2854
2855
@@ -2860,8 +2861,8 @@ func TestConnectionPool_NewWatcher_modes(t *testing.T) {
2860
2861
roles := []bool {true , false , false , true , true }
2861
2862
2862
2863
opts := connOpts .Clone ()
2863
- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
2864
- tarantool . WatchersFeature ,
2864
+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
2865
+ iproto . IPROTO_FEATURE_WATCHERS ,
2865
2866
}
2866
2867
err := test_helpers .SetClusterRO (servers , opts , roles )
2867
2868
require .Nilf (t , err , "fail to set roles for cluster" )
@@ -2941,8 +2942,8 @@ func TestConnectionPool_NewWatcher_update(t *testing.T) {
2941
2942
roles := []bool {true , false , false , true , true }
2942
2943
2943
2944
opts := connOpts .Clone ()
2944
- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
2945
- tarantool . WatchersFeature ,
2945
+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
2946
+ iproto . IPROTO_FEATURE_WATCHERS ,
2946
2947
}
2947
2948
err := test_helpers .SetClusterRO (servers , opts , roles )
2948
2949
require .Nilf (t , err , "fail to set roles for cluster" )
@@ -3030,8 +3031,8 @@ func TestWatcher_Unregister(t *testing.T) {
3030
3031
roles := []bool {true , false , false , true , true }
3031
3032
3032
3033
opts := connOpts .Clone ()
3033
- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
3034
- tarantool . WatchersFeature ,
3034
+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
3035
+ iproto . IPROTO_FEATURE_WATCHERS ,
3035
3036
}
3036
3037
err := test_helpers .SetClusterRO (servers , opts , roles )
3037
3038
require .Nilf (t , err , "fail to set roles for cluster" )
@@ -3091,8 +3092,8 @@ func TestConnectionPool_NewWatcher_concurrent(t *testing.T) {
3091
3092
roles := []bool {true , false , false , true , true }
3092
3093
3093
3094
opts := connOpts .Clone ()
3094
- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
3095
- tarantool . WatchersFeature ,
3095
+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
3096
+ iproto . IPROTO_FEATURE_WATCHERS ,
3096
3097
}
3097
3098
err := test_helpers .SetClusterRO (servers , opts , roles )
3098
3099
require .Nilf (t , err , "fail to set roles for cluster" )
@@ -3133,8 +3134,8 @@ func TestWatcher_Unregister_concurrent(t *testing.T) {
3133
3134
roles := []bool {true , false , false , true , true }
3134
3135
3135
3136
opts := connOpts .Clone ()
3136
- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
3137
- tarantool . WatchersFeature ,
3137
+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
3138
+ iproto . IPROTO_FEATURE_WATCHERS ,
3138
3139
}
3139
3140
err := test_helpers .SetClusterRO (servers , opts , roles )
3140
3141
require .Nilf (t , err , "fail to set roles for cluster" )
0 commit comments