Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 11, 2021
1 parent 0e8ed64 commit c63fe11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin_manager/src/plugin_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl From<&CocoConfig> for PluginManager {
mod tests {
use crate::plugin_manager::PluginManager;
use core_model::coco_config::CocoPlugin;
use core_model::{CocoConfig, RepoConfig};
use core_model::CocoConfig;

#[test]
fn test_plugin_run_all_in_local() {
Expand Down
1 change: 0 additions & 1 deletion plugins/coco_container/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ pub fn plugin() -> Box<dyn PluginInterface> {
#[cfg(test)]
mod tests {
use crate::coco_container_plugin::analysis;
use dockerfile_parser::Dockerfile;
use std::path::PathBuf;

pub fn dockerfile_dir() -> PathBuf {
Expand Down
4 changes: 2 additions & 2 deletions src/app/visual/local_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ fn lookup_coco_reporter(req: HttpRequest, project: &str) -> HttpResponse {
let output_path = Settings::reporter(Some(coco_type.as_str())).join(project_file);

println!("lookup file: {:?}", output_path);
` let content = fs::read_to_string(output_path).unwrap();
`
let content = fs::read_to_string(output_path).unwrap();

return HttpResponse::Ok()
.content_type("application/json")
.body(content.into_bytes());
Expand Down

0 comments on commit c63fe11

Please sign in to comment.