Skip to content

Commit ae84789

Browse files
committed
Change variable name
Signed-off-by: Felipe <afrueda97@outlook.com>
1 parent 5aac8c1 commit ae84789

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

analyzer/javatests/com/engflow/bazel/invocation/analyzer/bazelprofile/BazelProfileTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public void getActionCountsMixedUsesNew()
353353
@Test
354354
public void addEventShouldThrowOnSortedProfileThread() throws Exception {
355355
var name = "CPP";
356-
var want =
356+
var thread =
357357
new ProfileThread(
358358
new ThreadId(1, 1),
359359
BazelProfileConstants.THREAD_CRITICAL_PATH,
@@ -397,11 +397,11 @@ public void addEventShouldThrowOnSortedProfileThread() throws Exception {
397397
ImmutableMap.of());
398398

399399
// Getting the completeEvents from the thread will trigger them to be sorted.
400-
var sorted = want.getCompleteEvents();
400+
var sorted = thread.getCompleteEvents();
401401
// At this point, any further attempts at modifying the thread should throw an ISE, as this
402402
// would break the sorting that was previously done.
403403
var exception =
404-
assertThrows(IllegalStateException.class, () -> want.addEvent(new JsonObject()));
404+
assertThrows(IllegalStateException.class, () -> thread.addEvent(new JsonObject()));
405405
assertThat(exception)
406406
.hasMessageThat()
407407
.isEqualTo("Cannot add event, Bazel profile thread has been sorted!");

0 commit comments

Comments
 (0)