Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Aug 23, 2024
1 parent 1f03a77 commit 1ba9c1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kclvm/driver/src/test_data/kpm_update/kcl.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ edition = "0.0.1"
version = "0.0.1"

[dependencies]
helloworld = { oci = "oci://ghcr.io/kcl-lang/helloworld", tag = "0.1.0" }
flask = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests", commit = "ade147b" }
helloworld = { oci = "oci://ghcr.io/kcl-lang/helloworld", tag = "0.1.0" }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"DefaultOciRegistry":"ghcr.io","DefaultOciRepo":"kcl-lang","DefaultOciPlainHttp":false}
{"DefaultOciRegistry":"ghcr.io","DefaultOciRepo":"kcl-lang"}
4 changes: 2 additions & 2 deletions kclvm/parser/src/lexer/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use compiler_base_span::{span::new_byte_pos, FilePathMapping, SourceMap};
use expect_test::{expect, Expect};
use kclvm_error::Handler;
use kclvm_span::create_session_globals_then;
use std::cell::RefCell;
use parking_lot::RwLock;
use std::path::PathBuf;
use std::sync::Arc;

Expand All @@ -16,7 +16,7 @@ impl ParseSession {
pub(crate) fn with_source_map(sm: Arc<SourceMap>) -> Self {
Self(
Arc::new(Session::new(sm, Arc::new(DiagnosticHandler::default()))),
RefCell::new(Handler::default()),
RwLock::new(Handler::default()),
)
}
}
Expand Down

0 comments on commit 1ba9c1f

Please sign in to comment.