Skip to content

Commit 8a6d013

Browse files
committed
[rust] Delete the files the oneOf member test generates
1 parent 614c3b8 commit 8a6d013

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎modules/openapi-generator/src/test/java/org/openapitools/codegen/rust/RustClientCodegenTest.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ public void testOneOfMemberWithoutTitleOrType() throws IOException {
367367
.setInputSpec("src/test/resources/3_0/rust/oneof-member-without-type.yaml")
368368
.setSkipOverwrite(false)
369369
.setOutputDir(target.toAbsolutePath().toString().replace("\\", "/"));
370-
new DefaultGenerator().opts(configurator.toClientOptInput()).generate();
370+
List<File> files = new DefaultGenerator().opts(configurator.toClientOptInput()).generate();
371+
files.forEach(File::deleteOnExit);
371372
Path outputPath = Path.of(target.toString(), "/src/models/conditions.rs");
372373
TestUtils.assertFileExists(outputPath);
373374
TestUtils.assertFileContains(outputPath, "WorkflowPathCondition(Box<models::WorkflowPathCondition>)");

0 commit comments

Comments
 (0)