@@ -12,7 +12,7 @@ const setup = dgram.createSocket.bind(dgram, {type: 'udp4', reuseAddr: true});
12
12
const socket = setup ( ) ;
13
13
socket . close ( common . mustCall ( ( ) => {
14
14
assert . throws ( ( ) => { socket . addMembership ( multicastAddress ) ; } ,
15
- / N o t r u n n i n g / ) ;
15
+ / ^ E r r o r : N o t r u n n i n g $ / ) ;
16
16
} ) ) ;
17
17
}
18
18
@@ -21,23 +21,23 @@ const setup = dgram.createSocket.bind(dgram, {type: 'udp4', reuseAddr: true});
21
21
const socket = setup ( ) ;
22
22
socket . close ( common . mustCall ( ( ) => {
23
23
assert . throws ( ( ) => { socket . dropMembership ( multicastAddress ) ; } ,
24
- / N o t r u n n i n g / ) ;
24
+ / ^ E r r o r : N o t r u n n i n g $ / ) ;
25
25
} ) ) ;
26
26
}
27
27
28
28
// addMembership() with no argument should throw
29
29
{
30
30
const socket = setup ( ) ;
31
31
assert . throws ( ( ) => { socket . addMembership ( ) ; } ,
32
- / m u l t i c a s t a d d r e s s m u s t b e s p e c i f i e d / ) ;
32
+ / ^ E r r o r : m u l t i c a s t a d d r e s s m u s t b e s p e c i f i e d $ / ) ;
33
33
socket . close ( ) ;
34
34
}
35
35
36
36
// dropMembership() with no argument should throw
37
37
{
38
38
const socket = setup ( ) ;
39
39
assert . throws ( ( ) => { socket . dropMembership ( ) ; } ,
40
- / m u l t i c a s t a d d r e s s m u s t b e s p e c i f i e d / ) ;
40
+ / ^ E r r o r : m u l t i c a s t a d d r e s s m u s t b e s p e c i f i e d $ / ) ;
41
41
socket . close ( ) ;
42
42
}
43
43
@@ -69,7 +69,7 @@ const setup = dgram.createSocket.bind(dgram, {type: 'udp4', reuseAddr: true});
69
69
const socket = setup ( ) ;
70
70
assert . throws (
71
71
( ) => { socket . dropMembership ( multicastAddress ) ; } ,
72
- / E A D D R N O T A V A I L /
72
+ / ^ E r r o r : d r o p M e m b e r s h i p E A D D R N O T A V A I L $ /
73
73
) ;
74
74
socket . close ( ) ;
75
75
}
0 commit comments