Class: Minitest::Distributed::EnqueuedRunnable::Result
- Inherits:
-
T::Struct
- Object
- T::Struct
- Minitest::Distributed::EnqueuedRunnable::Result
- Extended by:
- T::Sig
- Defined in:
- lib/minitest/distributed/enqueued_runnable.rb
Defined Under Namespace
Classes: Commit
Instance Method Summary collapse
Instance Method Details
#committed_result ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/minitest/distributed/enqueued_runnable.rb', line 105 def committed_result @committed_result ||= T.let( if final? && commit.failure? # If a runnable result is final, but the acked failed, we will discard the result. Minitest::Discard.wrap( initial_result, test_timeout_seconds: enqueued_runnable.test_timeout_seconds, ) else initial_result end, T.nilable(Minitest::Result), ) end |
#entry_id ⇒ Object
90 91 92 |
# File 'lib/minitest/distributed/enqueued_runnable.rb', line 90 def entry_id enqueued_runnable.entry_id end |
#final? ⇒ Boolean
95 96 97 |
# File 'lib/minitest/distributed/enqueued_runnable.rb', line 95 def final? !requeue? end |
#requeue? ⇒ Boolean
100 101 102 |
# File 'lib/minitest/distributed/enqueued_runnable.rb', line 100 def requeue? ResultType.of(initial_result) == ResultType::Requeued end |