Skip to content

Commit d331d5c

Browse files
committed
Come on it's using uuid. What are the chances of name collision?
1 parent 12e36f5 commit d331d5c

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

tests/src/test/java/io/orkes/conductor/client/http/EnvironmentClientTests.java

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@
1212
*/
1313
package io.orkes.conductor.client.http;
1414

15-
import java.util.List;
16-
import java.util.Optional;
17-
import java.util.UUID;
18-
19-
import org.junit.jupiter.api.Assertions;
20-
import org.junit.jupiter.api.BeforeAll;
21-
import org.junit.jupiter.api.Test;
22-
23-
import com.netflix.conductor.client.exception.ConductorClientException;
24-
2515
import io.orkes.conductor.client.EnvironmentClient;
2616
import io.orkes.conductor.client.model.Tag;
2717
import io.orkes.conductor.client.model.environment.EnvironmentVariable;
2818
import io.orkes.conductor.client.util.ClientTestUtil;
19+
import org.junit.jupiter.api.Assertions;
20+
import org.junit.jupiter.api.BeforeAll;
21+
import org.junit.jupiter.api.Test;
22+
23+
import java.util.List;
24+
import java.util.Optional;
25+
import java.util.UUID;
2926

3027
public class EnvironmentClientTests {
3128

@@ -42,12 +39,6 @@ void testMethods() {
4239
String varName = "test-sdk-java-env-var-" + UUID.randomUUID();
4340
String value = "value-" + UUID.randomUUID();
4441

45-
try {
46-
envClient.deleteEnvironmentVariable(varName);
47-
} catch (ConductorClientException ignore) {
48-
// ignore if not found
49-
}
50-
5142
// create/update
5243
envClient.createOrUpdateEnvironmentVariable(varName, value);
5344

0 commit comments

Comments
 (0)