Use the cheapest default token when multiple are available (#2990)

Previously we would just use the first one we found. This is a valid
behavior, but we want to change it so that we apply the cheapest default
if multiple are available (this way we avoid having to go back after the
fact and give refunds).
This commit is contained in:
gbrodman
2026-03-27 17:19:38 +00:00
committed by GitHub
parent 3513364c97
commit a129a0dc21
16 changed files with 215 additions and 74 deletions
@@ -178,8 +178,7 @@ public class FlywayDeadlockTest {
.filter(line -> !line.isBlank())
.collect(joining(" ")))
.map(FlywayDeadlockTest::getDdlLockedElementName)
.filter(Optional::isPresent)
.map(Optional::get)
.flatMap(Optional::stream)
.collect(toImmutableSet());
} catch (IOException e) {
throw new RuntimeException(e);