Sketch on chamfer fix test for when fixed in engine (#3147)
* updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
@ -2471,7 +2471,7 @@ const part001 = cube([0,0], 20)
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
#[ignore] // Ignore until this is fixed in the engine: https://github.com/KittyCAD/engine/issues/2260
|
||||
// Will return an error until this is fixed in the engine: https://github.com/KittyCAD/engine/issues/2260
|
||||
async fn serial_test_sketch_on_face_of_chamfer() {
|
||||
let code = r#"fn cube = (pos, scale) => {
|
||||
const sg = startSketchOn('XY')
|
||||
@ -2490,7 +2490,7 @@ const part001 = cube([0,0], 20)
|
||||
tags: [getOppositeEdge(line1)]
|
||||
}, %, $chamfer1)
|
||||
|
||||
const sketch001 = startSketchOn(part001, 'chamfer1')
|
||||
const sketch001 = startSketchOn(part001, chamfer1)
|
||||
|> startProfileAt([4.28, 3.83], %)
|
||||
|> line([2.17, -0.03], %)
|
||||
|> line([-0.07, -1.8], %)
|
||||
@ -2500,11 +2500,17 @@ const sketch001 = startSketchOn(part001, 'chamfer1')
|
||||
|> extrude(10, %)
|
||||
"#;
|
||||
|
||||
let result = execute_and_snapshot(code, UnitLength::Mm).await.unwrap();
|
||||
twenty_twenty::assert_image(
|
||||
let result = execute_and_snapshot(code, UnitLength::Mm).await;
|
||||
/*twenty_twenty::assert_image(
|
||||
"tests/executor/outputs/sketch_on_face_of_chamfer.png",
|
||||
&result,
|
||||
MIN_DIFF,
|
||||
);*/
|
||||
|
||||
assert!(result.is_err());
|
||||
assert_eq!(
|
||||
result.err().unwrap().to_string(),
|
||||
r#"engine: KclErrorDetails { source_ranges: [SourceRange([410, 441])], message: "Modeling command failed: []" }"#
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user