summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Cargo.toml2
-rw-r--r--tests/integration/jupyter_tests.rs5
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/Cargo.toml b/tests/Cargo.toml
index af220aae7..4b8db9564 100644
--- a/tests/Cargo.toml
+++ b/tests/Cargo.toml
@@ -33,7 +33,7 @@ required-features = ["run"]
[dev-dependencies]
bytes.workspace = true
-chrono.workspace = true
+chrono = { workspace = true, features = ["now"] }
deno_ast.workspace = true
deno_bench_util.workspace = true
deno_cache_dir = { workspace = true }
diff --git a/tests/integration/jupyter_tests.rs b/tests/integration/jupyter_tests.rs
index c7b2712e8..e0733d5a3 100644
--- a/tests/integration/jupyter_tests.rs
+++ b/tests/integration/jupyter_tests.rs
@@ -25,9 +25,6 @@ use zeromq::SocketRecv;
use zeromq::SocketSend;
use zeromq::ZmqMessage;
-// for the `utc_now` function
-include!("../../cli/util/time.rs");
-
/// Jupyter connection file format
#[derive(Serialize)]
struct ConnectionSpec {
@@ -138,7 +135,7 @@ impl Default for MsgHeader {
Self {
msg_id: Uuid::new_v4(),
session: Uuid::new_v4(),
- date: utc_now(),
+ date: chrono::Utc::now(),
username: "test".into(),
msg_type: "kernel_info_request".into(),
version: "5.3".into(),