From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox 3/4] apt: tests: code cleanup to avoid useless vector
Date: Thu, 1 Jun 2023 18:14:38 +0200 [thread overview]
Message-ID: <20230601161439.114525-3-f.ebner@proxmox.com> (raw)
In-Reply-To: <20230601161439.114525-1-f.ebner@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
proxmox-apt/tests/repositories.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/proxmox-apt/tests/repositories.rs b/proxmox-apt/tests/repositories.rs
index 4b3c9de..710e2f7 100644
--- a/proxmox-apt/tests/repositories.rs
+++ b/proxmox-apt/tests/repositories.rs
@@ -396,13 +396,11 @@ fn test_standard_repositories() -> Result<(), Error> {
let mut file = APTRepositoryFile::new(&pve_alt_list)?.unwrap();
file.parse()?;
- let file_vec = vec![file];
-
expected[0].status = Some(true);
expected[1].status = Some(true);
expected[2].status = Some(false);
- let std_repos = standard_repositories(&file_vec, "pve", DebianCodename::Bullseye);
+ let std_repos = standard_repositories(&[file], "pve", DebianCodename::Bullseye);
assert_eq!(std_repos, expected);
--
2.39.2
next prev parent reply other threads:[~2023-06-01 16:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-01 16:14 [pve-devel] [PATCH proxmox 1/4] apt: drop older Ceph standard repositories Fiona Ebner
2023-06-01 16:14 ` [pve-devel] [PATCH proxmox 2/4] apt: split Ceph main repository into no-subscription and enterprise Fiona Ebner
2023-06-01 16:14 ` Fiona Ebner [this message]
2023-06-01 16:14 ` [pve-devel] [PATCH proxmox 4/4] apt: tests: add tests for Ceph Quincy repository detection on Bookworm Fiona Ebner
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=20230601161439.114525-3-f.ebner@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=pve-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.