feat: fix test
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-02-18 01:31:41 +01:00
parent c3739c1bc1
commit 44fbf1f362
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
2 changed files with 7 additions and 2 deletions

View File

@ -129,7 +129,7 @@ impl Archive {
}
pub struct ArchiveFile {
content: Vec<u8>,
pub content: Vec<u8>,
}
impl From<Vec<u8>> for ArchiveFile {

View File

@ -67,7 +67,7 @@ pub mod models;
#[cfg(test)]
mod test {
use crate::services::archive::MockArchive;
use crate::services::archive::{ArchiveFile, MockArchive};
use crate::services::domain_events::MockDomainEvents;
use crate::services::file_reader::{Files, MockFileReader};
use crate::services::file_store::MockFileStore;
@ -95,6 +95,11 @@ mod test {
.returning(|_| Ok(Files::default()));
let mut archive = MockArchive::default();
archive.expect_create_archive().times(1).returning(|_| {
Ok(ArchiveFile {
content: Vec::new(),
})
});
let releaser_manager = ReleaseManager::new(file_reader, file_store, archive, domain_events);