mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-03-12 14:43:03 +00:00
Safezip: Fix test (issue was a difference in file ordering between otp26 and otp27)
This commit is contained in:
parent
a7b6d3c1d1
commit
a184eccde7
1 changed files with 2 additions and 5 deletions
|
@ -179,7 +179,6 @@ defmodule Pleroma.SafeZipTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "unzip_file/3" do
|
describe "unzip_file/3" do
|
||||||
@tag :skip
|
|
||||||
test "extracts files from a zip archive" do
|
test "extracts files from a zip archive" do
|
||||||
archive_path = Path.join(@fixtures_dir, "emojis.zip")
|
archive_path = Path.join(@fixtures_dir, "emojis.zip")
|
||||||
|
|
||||||
|
@ -194,7 +193,7 @@ defmodule Pleroma.SafeZipTest do
|
||||||
first_file = List.first(files)
|
first_file = List.first(files)
|
||||||
|
|
||||||
# Simply check that the file exists in the tmp directory
|
# Simply check that the file exists in the tmp directory
|
||||||
assert File.exists?(Path.join(@tmp_dir, Path.basename(first_file)))
|
assert File.exists?(first_file)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "extracts specific files from a zip archive" do
|
test "extracts specific files from a zip archive" do
|
||||||
|
@ -251,7 +250,6 @@ defmodule Pleroma.SafeZipTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "unzip_data/3" do
|
describe "unzip_data/3" do
|
||||||
@tag :skip
|
|
||||||
test "extracts files from zip data" do
|
test "extracts files from zip data" do
|
||||||
archive_path = Path.join(@fixtures_dir, "emojis.zip")
|
archive_path = Path.join(@fixtures_dir, "emojis.zip")
|
||||||
archive_data = File.read!(archive_path)
|
archive_data = File.read!(archive_path)
|
||||||
|
@ -267,10 +265,9 @@ defmodule Pleroma.SafeZipTest do
|
||||||
first_file = List.first(files)
|
first_file = List.first(files)
|
||||||
|
|
||||||
# Simply check that the file exists in the tmp directory
|
# Simply check that the file exists in the tmp directory
|
||||||
assert File.exists?(Path.join(@tmp_dir, Path.basename(first_file)))
|
assert File.exists?(first_file)
|
||||||
end
|
end
|
||||||
|
|
||||||
@tag :skip
|
|
||||||
test "extracts specific files from zip data" do
|
test "extracts specific files from zip data" do
|
||||||
archive_path = Path.join(@fixtures_dir, "emojis.zip")
|
archive_path = Path.join(@fixtures_dir, "emojis.zip")
|
||||||
archive_data = File.read!(archive_path)
|
archive_data = File.read!(archive_path)
|
||||||
|
|
Loading…
Reference in a new issue