Skip to content
Permalink
Browse files

Fix the TestBot concurrency improvement

Reviewed-by: ehelin
  • Loading branch information
rwestberg committed Sep 29, 2020
1 parent d8d42e8 commit 606b40cd910a3084a7d20783cf792d8d59211f90
@@ -49,7 +49,14 @@

@Override
public boolean concurrentWith(WorkItem other) {
return false;
if (!(other instanceof TestUpdateNeededWorkItem)) {
return true;
}
var o = (TestUpdateNeededWorkItem) other;
if (!pr.repository().url().equals(o.pr.repository().url())) {
return true;
}
return !pr.id().equals(o.pr.id());
}

@Override
@@ -89,4 +96,10 @@ public boolean concurrentWith(WorkItem other) {
}
return List.of();
}

@Override
public String toString() {
return "TestUpdateNeededWorkItem@" + pr.repository().name() + "#" + pr.id();
}

}

1 comment on commit 606b40c

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on 606b40c Sep 29, 2020

Please sign in to comment.