Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Jan 20, 2023
1 parent 361910d commit a5639b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/powerloader/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace powerloader
public:
using mirror_map_base::begin;
using mirror_map_base::clear;
using mirror_map_base::end;
using mirror_map_base::empty;
using mirror_map_base::end;
using mirror_map_base::mirror_map_base;
using mirror_map_base::size;

Expand Down
8 changes: 5 additions & 3 deletions test/test_compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ TEST_SUITE("compression")
{
fs::remove("out_zst.txt");
}
auto target = std::make_shared<DownloadTarget>(
"file:///" + filename.string(), "test.txt", "out_zst.txt");

Context ctx;
// TODO file URL handling is doing some weird things
auto target
= DownloadTarget::from_url(ctx, "file:///" + filename.string(), "out_zst.txt", ".");
target->set_compression_type(CompressionType::ZSTD);
target->add_checksum(
{ ChecksumType::kSHA256,
"06fa557926742aad170074b1ce955014a4213e960e8f09f07fa23371100dd18e" });

Context ctx;
Downloader downloader(ctx);
downloader.add(target);
downloader.download();
Expand Down

0 comments on commit a5639b9

Please sign in to comment.