@@ -14,6 +14,7 @@ import (
1414
1515 "github.com/stretchr/testify/assert"
1616 "github.com/stretchr/testify/require"
17+ "github.com/tarantool/go-iproto"
1718 "github.com/vmihailenco/msgpack/v5"
1819
1920 "github.com/tarantool/go-tarantool/v2"
@@ -2832,7 +2833,7 @@ func TestConnectionPool_NewWatcher_noWatchersFeature(t *testing.T) {
28322833 roles := []bool {true , false , false , true , true }
28332834
28342835 opts := connOpts .Clone ()
2835- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {}
2836+ opts .RequiredProtocolInfo .Features = []iproto. Feature {}
28362837 err := test_helpers .SetClusterRO (servers , opts , roles )
28372838 require .Nilf (t , err , "fail to set roles for cluster" )
28382839
@@ -2847,8 +2848,8 @@ func TestConnectionPool_NewWatcher_noWatchersFeature(t *testing.T) {
28472848 func (event tarantool.WatchEvent ) {}, pool .ANY )
28482849 require .Nilf (t , watcher , "watcher must not be created" )
28492850 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"
28522853 require .Equal (t , expected , err .Error ())
28532854}
28542855
@@ -2860,8 +2861,8 @@ func TestConnectionPool_NewWatcher_modes(t *testing.T) {
28602861 roles := []bool {true , false , false , true , true }
28612862
28622863 opts := connOpts .Clone ()
2863- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
2864- tarantool . WatchersFeature ,
2864+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
2865+ iproto . IPROTO_FEATURE_WATCHERS ,
28652866 }
28662867 err := test_helpers .SetClusterRO (servers , opts , roles )
28672868 require .Nilf (t , err , "fail to set roles for cluster" )
@@ -2941,8 +2942,8 @@ func TestConnectionPool_NewWatcher_update(t *testing.T) {
29412942 roles := []bool {true , false , false , true , true }
29422943
29432944 opts := connOpts .Clone ()
2944- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
2945- tarantool . WatchersFeature ,
2945+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
2946+ iproto . IPROTO_FEATURE_WATCHERS ,
29462947 }
29472948 err := test_helpers .SetClusterRO (servers , opts , roles )
29482949 require .Nilf (t , err , "fail to set roles for cluster" )
@@ -3030,8 +3031,8 @@ func TestWatcher_Unregister(t *testing.T) {
30303031 roles := []bool {true , false , false , true , true }
30313032
30323033 opts := connOpts .Clone ()
3033- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
3034- tarantool . WatchersFeature ,
3034+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
3035+ iproto . IPROTO_FEATURE_WATCHERS ,
30353036 }
30363037 err := test_helpers .SetClusterRO (servers , opts , roles )
30373038 require .Nilf (t , err , "fail to set roles for cluster" )
@@ -3091,8 +3092,8 @@ func TestConnectionPool_NewWatcher_concurrent(t *testing.T) {
30913092 roles := []bool {true , false , false , true , true }
30923093
30933094 opts := connOpts .Clone ()
3094- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
3095- tarantool . WatchersFeature ,
3095+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
3096+ iproto . IPROTO_FEATURE_WATCHERS ,
30963097 }
30973098 err := test_helpers .SetClusterRO (servers , opts , roles )
30983099 require .Nilf (t , err , "fail to set roles for cluster" )
@@ -3133,8 +3134,8 @@ func TestWatcher_Unregister_concurrent(t *testing.T) {
31333134 roles := []bool {true , false , false , true , true }
31343135
31353136 opts := connOpts .Clone ()
3136- opts .RequiredProtocolInfo .Features = []tarantool. ProtocolFeature {
3137- tarantool . WatchersFeature ,
3137+ opts .RequiredProtocolInfo .Features = []iproto. Feature {
3138+ iproto . IPROTO_FEATURE_WATCHERS ,
31383139 }
31393140 err := test_helpers .SetClusterRO (servers , opts , roles )
31403141 require .Nilf (t , err , "fail to set roles for cluster" )
0 commit comments