From 6f04cf032bdf545260eed1445c861651309f8430 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 12 Mar 2025 12:02:28 +0000 Subject: [PATCH] Adapt test to change in Neo4j driver's internals See gh-44690 --- .../boot/autoconfigure/neo4j/Neo4jPropertiesTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jPropertiesTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jPropertiesTests.java index 432f3637cac..4ad2e7bdd2c 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jPropertiesTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jPropertiesTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,7 +66,7 @@ class Neo4jPropertiesTests { } private static void assertDuration(Duration duration, long expectedValueInMillis) { - if (expectedValueInMillis == org.neo4j.driver.internal.async.pool.PoolSettings.NOT_CONFIGURED) { + if (expectedValueInMillis == -1) { assertThat(duration).isNull(); } else {