From 9ddb26d0ddd3f1a0ecdf4f0f29e9429b8a38ed4c Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 16 Sep 2024 12:19:45 +0100 Subject: [PATCH] Remove seed user --- db/seeds.rb | 12 ------------ lib/tasks/performance_test.sh | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index e4e791f27..b58f7e0a8 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -235,18 +235,6 @@ unless Rails.env.test? create_data_protection_confirmation(user) end - User.find_or_create_by!( - name: "Coordinator", - email: "performance_testing_user@example.com", - organisation: org, - role: "data_coordinator", - is_dpo: true, - ) do |user| - user.password = "password" - user.confirmed_at = Time.zone.now - user.is_dpo = true - end - support_user = User.find_or_create_by!( name: "Support", email: "support@example.com", diff --git a/lib/tasks/performance_test.sh b/lib/tasks/performance_test.sh index 84897c45c..6fdc4248a 100644 --- a/lib/tasks/performance_test.sh +++ b/lib/tasks/performance_test.sh @@ -114,7 +114,7 @@ if (( $(echo "$time_per_request_all > 500" | bc -l) )); then fi if (( $(echo "$requests_per_second < 3" | bc -l) )); then - echo "Update logs: Performance test failed - Requests per second is less than 5: $requests_per_second" + echo "Update logs: Performance test failed - Requests per second is less than 3: $requests_per_second" exit 1 fi