Open mikereiche opened 11 months ago
CouchbaseRepositoryQueryIntegrationTests.testExpiration:759 expected: not equal but was: <0>a
It's because Options are now discarded on save()
public void testExpiration() { Airport airport = new Airport("1", "iata21", "icao21"); airportRepository.withOptions(InsertOptions.insertOptions().expiry(Duration.ofSeconds(10))).save(airport); Airport foundAirport = airportRepository.findByIata(airport.getIata()); assertNotEquals(0, foundAirport.getExpiration()); airportRepository.delete(airport); }
use template.withOptions(...).insertById(...).one(airport) instead.
CouchbaseRepositoryQueryIntegrationTests.testExpiration:759 expected: not equal but was: <0>a
It's because Options are now discarded on save()