Fix warning
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 28 Oct 2020 11:32:44 +0000 (15:32 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 28 Oct 2020 11:32:44 +0000 (15:32 +0400)
test/pleroma/user/backup_test.exs

index 51379891169bd88992ff3b8e68531fecc89df5ee..f68e4a029ac75e1356d850d00231d860ecff0fd6 100644 (file)
@@ -82,7 +82,7 @@ defmodule Pleroma.User.BackupTest do
 
     assert {:ok, job1} = Backup.create(user)
 
-    assert {:ok, %Backup{id: backup1_id}} = ObanHelpers.perform(job1)
+    assert {:ok, %Backup{}} = ObanHelpers.perform(job1)
     assert {:ok, job2} = Backup.create(user)
     assert Pleroma.Repo.aggregate(Backup, :count) == 2
     assert {:ok, backup2} = ObanHelpers.perform(job2)