about summary refs log tree commit diff
path: root/lib/tasks/tests.rake
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-26 21:22:09 +0200
committerGitHub <noreply@github.com>2022-04-26 21:22:09 +0200
commit33cd80d69c1491ff70ce9191113763c76cb7e6b7 (patch)
treeb55d22d4f0e260b601b70fc790f8e4c49f7da751 /lib/tasks/tests.rake
parentf47a9ddc9ffca22258ec9e4b12ca51db8cac1eac (diff)
Fix instance actor being incorrectly created when running migrations (#18109)
* Add migration test about instance actor key

* Fix old migration

* Work around incorrect database state
Diffstat (limited to 'lib/tasks/tests.rake')
-rw-r--r--lib/tasks/tests.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/tests.rake b/lib/tasks/tests.rake
index 8082f32fb..0f3b44a74 100644
--- a/lib/tasks/tests.rake
+++ b/lib/tasks/tests.rake
@@ -33,6 +33,11 @@ namespace :tests do
         puts 'AccountConversation records not created as expected'
         exit(1)
       end
+
+      if Account.find(-99).private_key.blank?
+        puts 'Instance actor does not have a private key'
+        exit(1)
+      end
     end
 
     desc 'Populate the database with test data for 2.4.0'