@@ -123,8 +123,7 @@ const {
123123 assert ( syncResult instanceof ArrayBuffer ) ;
124124 let is_async = false ;
125125 hkdf ( hash , secret , salt , info , length ,
126- common . mustCall ( ( err , asyncResult ) => {
127- assert . ifError ( err ) ;
126+ common . mustSucceed ( ( asyncResult ) => {
128127 assert ( is_async ) ;
129128 assert ( asyncResult instanceof ArrayBuffer ) ;
130129 assert . deepStrictEqual ( syncResult , asyncResult ) ;
@@ -141,8 +140,7 @@ const {
141140
142141 const syncResult = hkdfSync ( hash , buf_secret , buf_salt , buf_info , length ) ;
143142 hkdf ( hash , buf_secret , buf_salt , buf_info , length ,
144- common . mustCall ( ( err , asyncResult ) => {
145- assert . ifError ( err ) ;
143+ common . mustSucceed ( ( asyncResult ) => {
146144 assert . deepStrictEqual ( syncResult , asyncResult ) ;
147145 } ) ) ;
148146 }
@@ -154,8 +152,7 @@ const {
154152
155153 const syncResult = hkdfSync ( hash , key_secret , buf_salt , buf_info , length ) ;
156154 hkdf ( hash , key_secret , buf_salt , buf_info , length ,
157- common . mustCall ( ( err , asyncResult ) => {
158- assert . ifError ( err ) ;
155+ common . mustSucceed ( ( asyncResult ) => {
159156 assert . deepStrictEqual ( syncResult , asyncResult ) ;
160157 } ) ) ;
161158 }
@@ -167,8 +164,7 @@ const {
167164
168165 const syncResult = hkdfSync ( hash , ta_secret , ta_salt , ta_info , length ) ;
169166 hkdf ( hash , ta_secret , ta_salt , ta_info , length ,
170- common . mustCall ( ( err , asyncResult ) => {
171- assert . ifError ( err ) ;
167+ common . mustSucceed ( ( asyncResult ) => {
172168 assert . deepStrictEqual ( syncResult , asyncResult ) ;
173169 } ) ) ;
174170 }
@@ -185,8 +181,7 @@ const {
185181 ta_info . buffer ,
186182 length ) ;
187183 hkdf ( hash , ta_secret , ta_salt , ta_info , length ,
188- common . mustCall ( ( err , asyncResult ) => {
189- assert . ifError ( err ) ;
184+ common . mustSucceed ( ( asyncResult ) => {
190185 assert . deepStrictEqual ( syncResult , asyncResult ) ;
191186 } ) ) ;
192187 }
@@ -203,8 +198,7 @@ const {
203198 sa_info ,
204199 length ) ;
205200 hkdf ( hash , ta_secret , sa_salt , sa_info , length ,
206- common . mustCall ( ( err , asyncResult ) => {
207- assert . ifError ( err ) ;
201+ common . mustSucceed ( ( asyncResult ) => {
208202 assert . deepStrictEqual ( syncResult , asyncResult ) ;
209203 } ) ) ;
210204 }
0 commit comments