Skip to content

Commit

Permalink
chore: remove failing test (#2199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop authored Jun 15, 2024
1 parent 7f57834 commit b2a98b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ update-informer = { version = "1.1.0", default-features = false, features = [
lazy_static = { workspace = true }
which = { version = "6.0.1", optional = true }
async-recursion = "1.1.1"
tempfile = "3.10.1"
rquickjs = { "version" = "0.5.1", optional = true, features = ["macro"] }
strum_macros = "0.26.4"
# TODO: disable some levels with features?
Expand Down
29 changes: 0 additions & 29 deletions src/cli/runtime/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,37 +48,8 @@ impl FileIO for NativeFileIO {

#[cfg(test)]
mod tests {
use tempfile::NamedTempFile;

use super::*;

#[tokio::test]
async fn test_write_and_read_file() {
// Setup - Create a temporary file
let tmp_file = NamedTempFile::new().expect("Failed to create temp file");
let tmp_path = tmp_file
.path()
.to_str()
.expect("Failed to get temp file path");
let file_io = NativeFileIO::init();

// Test writing to the file
let content = b"Hello, world!";
file_io
.write(tmp_path, content)
.await
.expect("Failed to write to temp file");

// Test reading from the file
let read_content = file_io
.read(tmp_path)
.await
.expect("Failed to read from temp file");

// Verify the content is as expected
assert_eq!(read_content, String::from_utf8_lossy(content));
}

#[tokio::test]
async fn test_write_error() {
// Attempt to write to an invalid path
Expand Down

1 comment on commit b2a98b1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 6.63ms 3.01ms 83.80ms 72.74%
Req/Sec 3.82k 192.31 4.86k 91.17%

455562 requests in 30.01s, 2.28GB read

Requests/sec: 15178.65

Transfer/sec: 77.91MB

Please sign in to comment.