From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] tape/test: repair tests after changing 'start_write_session'
Date: Fri, 14 May 2021 09:28:50 +0200 [thread overview]
Message-ID: <20210514072850.30919-1-d.csapak@proxmox.com> (raw)
i added a parameter and forgot to adapt the tests
Signed-off-by: Dominik Csapak <d.csapak@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
next reply other threads:[~2021-05-14 7:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 7:28 Dominik Csapak [this message]
2021-05-14 8:02 ` [pbs-devel] applied: " Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210514072850.30919-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox