Skip to content

Commit

Permalink
Update from deprecated test-env-log to test-log
Browse files Browse the repository at this point in the history
  • Loading branch information
boydjohnson committed Jun 23, 2022
1 parent d8da0c4 commit a46026d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion onnxruntime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ureq = { version = "2.1", optional = true }

[dev-dependencies]
image = "0.23"
test-env-log = { version = "0.2", default-features = false, features = ["trace"] }
test-log = { version = "0.2", default-features = false, features = ["trace"] }
tracing-subscriber = "0.2"
ureq = "2.1"

Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl EnvBuilder {
mod tests {
use super::*;
use std::sync::{RwLock, RwLockWriteGuard};
use test_env_log::test;
use test_log::test;

impl G_ENV {
fn is_initialized(&self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Drop for MemoryInfo {
#[cfg(test)]
mod tests {
use super::*;
use test_env_log::test;
use test_log::test;

#[test]
fn memory_info_constructor_destructor() {
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/src/tensor/ndarray_tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ where
mod tests {
use super::*;
use ndarray::{arr1, arr2, arr3};
use test_env_log::test;
use test_log::test;

#[test]
fn softmax_1d() {
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/src/tensor/ort_tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ mod tests {
use crate::{AllocatorType, MemType};
use ndarray::{arr0, arr1, arr2, arr3};
use std::ptr;
use test_env_log::test;
use test_log::test;

#[test]
fn orttensor_from_array_0d_i32() {
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod download {

use image::{imageops::FilterType, ImageBuffer, Luma, Pixel, Rgb};
use ndarray::s;
use test_env_log::test;
use test_log::test;

use onnxruntime::{
download::vision::{DomainBasedImageClassification, ImageClassification},
Expand Down

0 comments on commit a46026d

Please sign in to comment.