[pbs-devel] [PATCH proxmox-backup] tape/test: repair tests after changing 'start_write_session'
Dominik Csapak
d.csapak at proxmox.com
Fri May 14 09:28:50 CEST 2021
i added a parameter and forgot to adapt the tests
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/tape/test/alloc_writable_media.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/tape/test/alloc_writable_media.rs b/src/tape/test/alloc_writable_media.rs
index 8ed3de11..8190f250 100644
--- a/src/tape/test/alloc_writable_media.rs
+++ b/src/tape/test/alloc_writable_media.rs
@@ -47,7 +47,7 @@ fn test_alloc_writable_media_1() -> Result<(), Error> {
ctime += 10;
- pool.start_write_session(ctime)?;
+ pool.start_write_session(ctime, false)?;
// no media in pool
assert!(pool.alloc_writable_media(ctime).is_err());
@@ -77,7 +77,7 @@ fn test_alloc_writable_media_2() -> Result<(), Error> {
let ctime = 10;
- pool.start_write_session(ctime)?;
+ pool.start_write_session(ctime, false)?;
// use free media
assert_eq!(pool.alloc_writable_media(ctime)?, tape1_uuid);
@@ -117,7 +117,7 @@ fn test_alloc_writable_media_3() -> Result<(), Error> {
let mut ctime = 10;
- pool.start_write_session(ctime)?;
+ pool.start_write_session(ctime, false)?;
// use free media
assert_eq!(pool.alloc_writable_media(ctime)?, tape1_uuid);
@@ -164,7 +164,7 @@ fn test_alloc_writable_media_4() -> Result<(), Error> {
let start_time = 10;
- pool.start_write_session(start_time)?;
+ pool.start_write_session(start_time, false)?;
// use free media
assert_eq!(pool.alloc_writable_media(start_time)?, tape1_uuid);
@@ -178,7 +178,7 @@ fn test_alloc_writable_media_4() -> Result<(), Error> {
assert!(pool.alloc_writable_media(start_time + 5).is_err());
// Create new media set, so that previous set can expire
- pool.start_write_session(start_time + 10)?;
+ pool.start_write_session(start_time + 10, false)?;
assert!(pool.alloc_writable_media(start_time + 10).is_err());
assert!(pool.alloc_writable_media(start_time + 11).is_err());
--
2.20.1
More information about the pbs-devel
mailing list