Skip to content

Migrate memory_pool/pool tests to insta #16099

@ding-young

Description

@ding-young

Description

In #15178, we're switching hard-coded constants in tests to insta.

This issue targets updating tests in pool.rs (datafusion/execution/memory_pool/pool) so that testing long string err messages is easier via snapshot tests.

One example that needs to be switched to insta is

assert_eq!(err, "Resources exhausted: Failed to allocate additional 30.0 B for s4 with 0.0 B already allocated for this reservation - 20.0 B remain available for the total pool");

Reference

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions