File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,9 @@ mod tests {
255
255
check_persisted_data ! ( 11 ) ;
256
256
}
257
257
258
- // Windows ignores the read-only flag for folders.
258
+ // Test that if the persister's path to channel data is read-only, writing
259
+ // data to it fails. Windows ignores the read-only flag for folders, so this
260
+ // test is Unix-only.
259
261
#[ cfg( not( target_os = "windows" ) ) ]
260
262
#[ test]
261
263
fn test_readonly_dir ( ) {
@@ -335,7 +337,9 @@ mod tests {
335
337
}
336
338
}
337
339
338
- // Windows ignores the read-only flag for folders.
340
+ // Test that if the persister's path to channel data is read-only, writing a
341
+ // monitor to it results in the persister returning a PermanentFailure.
342
+ // Windows ignores the read-only flag for folders, so this test is Unix-only.
339
343
#[ cfg( not( target_os = "windows" ) ) ]
340
344
#[ test]
341
345
fn test_readonly_dir_perm_failure ( ) {
@@ -376,6 +380,8 @@ mod tests {
376
380
fs:: set_permissions ( path, perms) . unwrap ( ) ;
377
381
}
378
382
383
+ // Test that if a persister's directory name is invalid, monitor persistence
384
+ // will fail.
379
385
#[ cfg( target_os = "windows" ) ]
380
386
#[ test]
381
387
fn test_fail_on_open ( ) {
You can’t perform that action at this time.
0 commit comments