Skip to content

Commit

Permalink
Updates due to Duration.NONE changing to Duration.None
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman committed Sep 12, 2023
1 parent 6a8a1a8 commit 3bc18e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib_xunit_engine/src/main/x/xunit_engine/Result.x
Expand Up @@ -8,7 +8,7 @@
* during test cleanup
*/
const Result(Status status, Exception? exception = Null, Exception[]? suppressed = Null,
Duration duration = Duration.NONE) {
Duration duration = Duration.None) {
/**
* Create a copy of this `Result` with a specific duration.
*
Expand Down
Expand Up @@ -70,7 +70,7 @@ const TestExecutor {
Boolean started = False;
EngineExecutionContext context = parentContext;
Time start = clock.now;
Duration duration = NONE;
Duration duration = None;

if (context := collector.execute(() -> lifecycle.prepare(parentContext, extensions, parentExtensions))) {
if (skipResult := collector.execute(() -> lifecycle.shouldBeSkipped(context, extensions))) {
Expand Down
Expand Up @@ -228,7 +228,7 @@ class AssertingExecutionListener
.assertResult(result -> {
assert:test result.exception == Null;
assert:test result.status == Successful;
assert:test result.duration != Duration.NONE;
assert:test result.duration != Duration.None;
});
}

Expand All @@ -247,7 +247,7 @@ class AssertingExecutionListener
.assertResult(result -> {
assert:test result.status == Failed;
assert:test result.exception.is(errorType);
assert:test result.duration != Duration.NONE;
assert:test result.duration != Duration.None;
});
}

Expand Down

0 comments on commit 3bc18e1

Please sign in to comment.