Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 620941b

Browse files
achimccAchim Schneider
authored andcommitted
no const for contract path
1 parent b8f1587 commit 620941b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/sandbox/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ fn vec_to_str(v: Vec<u8>) -> Result<String> {
374374
#[cfg(test)]
375375
mod tests {
376376
use super::*;
377-
const EXAMPLE_CODE_PATH : string = "../../contract/lib.rs";
378377

379378
fn compile_check(source: String) -> Option<bool> {
380379
Sandbox::new()
@@ -397,7 +396,7 @@ mod tests {
397396

398397
#[test]
399398
fn test_compile_valid_code() {
400-
let FLIPPER_CODE = include_str!(EXAMPLE_CODE_PATH);
399+
let FLIPPER_CODE = include_str!("../../contract/lib.rs");
401400
let actual_result = compile_check(FLIPPER_CODE.to_string());
402401

403402
assert_eq!(actual_result, Some(true))

0 commit comments

Comments
 (0)