@@ -120,11 +120,6 @@ module.exports = (common) => {
120
120
it ( '.stat gives error while offline' , ( done ) => {
121
121
ipfs . bitswap . stat ( ( err , stats ) => {
122
122
expect ( err ) . to . exist ( )
123
- // When run against core we get our expected error, when run
124
- // as part of the http tests we get a connection refused
125
- if ( err . code !== 'ECONNREFUSED' ) {
126
- expect ( err ) . to . match ( / o n l i n e m o d e / )
127
- }
128
123
expect ( stats ) . to . not . exist ( )
129
124
done ( )
130
125
} )
@@ -133,11 +128,6 @@ module.exports = (common) => {
133
128
it ( '.wantlist gives error if offline' , ( done ) => {
134
129
ipfs . bitswap . wantlist ( ( err , list ) => {
135
130
expect ( err ) . to . exist ( )
136
- // When run against core we get our expected error, when run
137
- // as part of the http tests we get a connection refused
138
- if ( err . code !== 'ECONNREFUSED' ) {
139
- expect ( err ) . to . match ( / o n l i n e m o d e / )
140
- }
141
131
expect ( list ) . to . not . exist ( )
142
132
done ( )
143
133
} )
@@ -147,11 +137,6 @@ module.exports = (common) => {
147
137
const key = 'QmUBdnXXPyoDFXj3Hj39dNJ5VkN3QFRskXxcGaYFBB8CNR'
148
138
ipfs . bitswap . unwant ( key , ( err ) => {
149
139
expect ( err ) . to . exist ( )
150
- // When run against core we get our expected error, when run
151
- // as part of the http tests we get a connection refused
152
- if ( err . code !== 'ECONNREFUSED' ) {
153
- expect ( err ) . to . match ( / o n l i n e m o d e / )
154
- }
155
140
done ( )
156
141
} )
157
142
} )
0 commit comments