diff --git a/SatelliteProvider.IntegrationTests/UavUploadTests.cs b/SatelliteProvider.IntegrationTests/UavUploadTests.cs index 489a47f..0d2a8ae 100644 --- a/SatelliteProvider.IntegrationTests/UavUploadTests.cs +++ b/SatelliteProvider.IntegrationTests/UavUploadTests.cs @@ -350,7 +350,12 @@ public static class UavUploadTests return stream.ToArray(); } - private static int _coordinateCounter; + // Seed the counter from a wall-clock value so each test-runner process picks a + // distinct coordinate band. Postgres state persists across docker-compose runs + // (named volume); a monotonic counter from 0 would collide with prior runs on + // the per-source unique index, especially for tests that seed rows via raw + // INSERT rather than the API's UPSERT path. + private static int _coordinateCounter = (int)((DateTime.UtcNow.Ticks / TimeSpan.TicksPerSecond) % 1_000_000); private static (double Latitude, double Longitude) NextTestCoordinate() {