Skip to content

Timeout never produces errors on long running commands #586

@sorenstoutner

Description

@sorenstoutner

My name is Soren Stoutner. I have started maintaining the Debian minimagick package as part of my work to better support Redmine in Debian. In updating to the latest version, I noticed an error running the timeout test.

it "terminate long running commands if timeout is set" do
expect { subject.run(%W[convert #{image_path} -resize 10000x10000 -blur 0x20 null:], timeout: 1) }
.to raise_error(MiniMagick::TimeoutError)
end

On my build setup (Ryzen 8700G), the timeout never fires. I tried adjusting the image size to be 100000 x 100000, but received an error that the size was beyond the maximum. I tried adjusting the timeout down to as low as 0.001, but the timeout didn't fire (I am not sure if the syntax processes a value below 1).

Currently, I am just patching out the test. But I would like to see if there is some way I can adjust my build environment to correctly test for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions