File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ describe("The 'select' method", function () {
72
72
assert . strictEqual ( client . selected_db , undefined , 'default db should be undefined' ) ;
73
73
client . select ( 9999 , function ( err ) {
74
74
assert . equal ( err . code , 'ERR' ) ;
75
- assert . equal ( err . message , 'ERR DB index is out of range' ) ;
75
+ assert ( ( err . message == 'ERR DB index is out of range' || err . message == 'ERR invalid DB index' ) ) ;
76
76
done ( ) ;
77
77
} ) ;
78
78
} ) ;
@@ -97,7 +97,7 @@ describe("The 'select' method", function () {
97
97
98
98
client . on ( 'error' , function ( err ) {
99
99
assert . strictEqual ( err . command , 'SELECT' ) ;
100
- assert . equal ( err . message , 'ERR DB index is out of range' ) ;
100
+ assert ( ( err . message == 'ERR DB index is out of range' || err . message == 'ERR invalid DB index' ) ) ;
101
101
done ( ) ;
102
102
} ) ;
103
103
You can’t perform that action at this time.
0 commit comments