Skip to content

combination of export + console breaks tokio sleep #46

Closed
@davidhewitt

Description

@davidhewitt

The following code hangs on the tokio sleep:

#[tokio::test]
async fn test_console_with_tokio_sleep() {
    // token is invalid, so exports will fail, but it was a necessary part of reproducing the issue
    let shutdown_handler = crate::configure()
        .with_token("abc123")
        .install_panic_handler()
        .finish()
        .unwrap();

    tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;

    shutdown_handler.shutdown().ok();
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions