File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const setup = () => {
14
14
const socket = setup ( ) ;
15
15
socket . close ( common . mustCall ( ( ) => {
16
16
assert . throws ( ( ) => { socket . addMembership ( multicastAddress ) ; } ,
17
- / N o t r u n n i n g / ) ;
17
+ / ^ E r r o r : N o t r u n n i n g $ / ) ;
18
18
} ) ) ;
19
19
}
20
20
@@ -23,23 +23,23 @@ const setup = () => {
23
23
const socket = setup ( ) ;
24
24
socket . close ( common . mustCall ( ( ) => {
25
25
assert . throws ( ( ) => { socket . dropMembership ( multicastAddress ) ; } ,
26
- / N o t r u n n i n g / ) ;
26
+ / ^ E r r o r : N o t r u n n i n g $ / ) ;
27
27
} ) ) ;
28
28
}
29
29
30
30
// addMembership() with no argument should throw
31
31
{
32
32
const socket = setup ( ) ;
33
33
assert . throws ( ( ) => { socket . addMembership ( ) ; } ,
34
- / 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 / ) ;
34
+ / ^ 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 $ / ) ;
35
35
socket . close ( ) ;
36
36
}
37
37
38
38
// dropMembership() with no argument should throw
39
39
{
40
40
const socket = setup ( ) ;
41
41
assert . throws ( ( ) => { socket . dropMembership ( ) ; } ,
42
- / 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 / ) ;
42
+ / ^ 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 $ / ) ;
43
43
socket . close ( ) ;
44
44
}
45
45
@@ -69,7 +69,7 @@ const setup = () => {
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
}
You can’t perform that action at this time.
0 commit comments