Skip to content

Commit

Permalink
Update specs after ENV change.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjonord committed Aug 29, 2024
1 parent 208d653 commit e589baf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RAILS_ENV=test
APP_NAME=request-queue-time
SERVER_ENVIRONMENT=stack-name
DD_SERVICE=request-queue-time
DD_ENV=stack-name

AWS_REGION=eu-west-1
AWS_REGION=eu-west-1
12 changes: 6 additions & 6 deletions spec/services/reporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
unit: "Milliseconds",
timestamp: Time.now,
dimensions: [
{name: "service", value: ENV["APP_NAME"]},
{name: "environment", value: ENV["SERVER_ENVIRONMENT"]}
{name: "service", value: ENV["DD_SERVICE"]},
{name: "environment", value: ENV["DD_ENV"]}
]
)
end
Expand All @@ -45,8 +45,8 @@
{
metric_name: "request_queue_time",
dimensions: [
{name: "service", value: ENV["APP_NAME"]},
{name: "environment", value: ENV["SERVER_ENVIRONMENT"]}
{name: "service", value: ENV["DD_SERVICE"]},
{name: "environment", value: ENV["DD_ENV"]}
],
timestamp: Time.now,
value: 42,
Expand Down Expand Up @@ -74,8 +74,8 @@
{
metric_name: "request_queue_time",
dimensions: [
{name: "service", value: ENV["APP_NAME"]},
{name: "environment", value: ENV["SERVER_ENVIRONMENT"]}
{name: "service", value: ENV["DD_SERVICE"]},
{name: "environment", value: ENV["DD_ENV"]}
],
timestamp: Time.now,
value: 42,
Expand Down

0 comments on commit e589baf

Please sign in to comment.