Skip to content

Commit

Permalink
fix test name & format
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp committed Nov 27, 2024
1 parent 34e300f commit 4e4ddb2
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ void cleanup() {
}

@Test
void testCustomInvokesDependsOntestCustomInvokesDependsOn() {
void testInvokesDependsOn() {
var marker = new ResolveMarker();

var test = PulumiTestInternal.builder()
.options(TestOptions.builder().preview(true).build())
.mocks(new Mocks() {
Expand All @@ -57,7 +57,7 @@ public CompletableFuture<ResourceResult> newResourceAsync(ResourceArgs args) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
}
return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value"));
return ResourceResult.of(Optional.of(args.id + "_id"), ImmutableMap.of("prop", "some value"));
});
return result;
}
Expand Down Expand Up @@ -85,10 +85,10 @@ public CompletableFuture<Map<String, Object>> callAsync(CallArgs args) {
assertThat(r).contains(ImmutableMap.of("root", ImmutableMap.of("test1", ImmutableList.of("1", "2", "3"))));
return (Void) null;
});

// Check that the resource was resolved when we called the invoke
assertThat(marker.resolved).isTrue();

Internal.of(out).getDataAsync().join();
});

Expand All @@ -99,10 +99,10 @@ public CompletableFuture<Map<String, Object>> callAsync(CallArgs args) {
public static final class MyArgs extends ResourceArgs {
// Empty
}

public static final class ResolveMarker {
public boolean resolved;

public ResolveMarker() {
this.resolved = false;
}
Expand Down

0 comments on commit 4e4ddb2

Please sign in to comment.