Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Nov 18, 2024
1 parent 1b12b69 commit a0b8bda
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/test/java/ru/r2cloud/it/SatelliteLoadTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package ru.r2cloud.it;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.attribute.FileTime;
import java.util.concurrent.TimeUnit;

import org.junit.Test;

import ru.r2cloud.TestUtil;
Expand All @@ -8,7 +13,9 @@
public class SatelliteLoadTest extends RegisteredTest {

@Test
public void testLoad() {
public void testLoad() throws Exception {
Path p = config.getPathFromProperty("satellites.meta.location");
Files.setLastModifiedTime(p, FileTime.from(1719525695573L, TimeUnit.MILLISECONDS));
TestUtil.assertJson("expected/satellite.json", client.getSatellite("25338"));
}

Expand Down

0 comments on commit a0b8bda

Please sign in to comment.