Skip to content

Commit 34c81e5

Browse files
committed
Use test backend for testing.
1 parent 6a369f0 commit 34c81e5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

config/sus.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Released under the MIT License.
44
# Copyright, 2022-2025, by Samuel Williams.
55

6-
ENV["TRACES_BACKEND"] ||= "traces/backend/console"
6+
ENV["TRACES_BACKEND"] ||= "traces/backend/test"
77

88
require "covered/sus"
99
include Covered::Sus

lib/traces/backend/test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def trace_context
8585

8686
# @returns [Boolean] Whether there is an active trace.
8787
def active?
88-
# For the sake of testing, we always enable tracing.
89-
true
88+
!!Fiber.current.traces_backend_context
9089
end
9190
end
9291
end

0 commit comments

Comments
 (0)