Skip to content

Commit

Permalink
Remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Martinez committed Dec 20, 2024
1 parent a41c539 commit 69b0b1e
Showing 1 changed file with 9 additions and 34 deletions.
43 changes: 9 additions & 34 deletions server/data_model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,12 @@ impl ComputeGraph {

Check warning on line 391 in server/data_model/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build Indexify Server

Diff in /home/runner/work/indexify/indexify/server/data_model/src/lib.rs
let mut graph_version: Option<ComputeGraphVersion> = None;

if self.code.sha256_hash != update.code.sha256_hash ||
self.runtime_information != update.runtime_information ||
self.edges != update.edges ||
self.start_fn != update.start_fn ||
self.nodes.len() != update.nodes.len() ||
self.nodes.iter().any(|(k, v)| {
if self.code.sha256_hash != update.code.sha256_hash
|| self.runtime_information != update.runtime_information
|| self.edges != update.edges
|| self.start_fn != update.start_fn
|| self.nodes.len() != update.nodes.len()
|| self.nodes.iter().any(|(k, v)| {
update
.nodes
.get(k)
Expand Down Expand Up @@ -1046,36 +1046,11 @@ mod tests {
use std::collections::HashMap;

Check warning on line 1046 in server/data_model/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build Indexify Server

Diff in /home/runner/work/indexify/indexify/server/data_model/src/lib.rs

use crate::{
test_objects::tests::test_compute_fn,
ComputeFn,
ComputeGraph,
ComputeGraphCode,
ComputeGraphVersion,
DynamicEdgeRouter,
ExecutorMetadata,
GraphVersion,
ImageInformation,
Node,
RuntimeInformation,
test_objects::tests::test_compute_fn, ComputeFn, ComputeGraph, ComputeGraphCode,
ComputeGraphVersion, DynamicEdgeRouter, ExecutorMetadata, GraphVersion, ImageInformation,
Node, RuntimeInformation,
};

#[test]
fn test_image_hash_consistency() {
let image_info = ImageInformation::new(
"test".to_string(),
"test".to_string(),
"static_base_image".to_string(),
vec!["pip install all_the_things".to_string()],
Some("1.2.3".to_string()),
);

assert_eq!(
image_info.image_hash,
"229514da1c19e40fda77e8b4a4990f69ce1ec460f025f4e1367bb2219f6abea1",
"image hash should not change"
);
}

#[test]
fn test_node_matches_executor_scenarios() {
fn check(
Expand Down

0 comments on commit 69b0b1e

Please sign in to comment.