Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
<dependency>
<groupId>com.vmlens</groupId>
<artifactId>api</artifactId>
<version>1.2.13</version>
<version>1.2.14</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -348,7 +348,7 @@
</activation>
<build>
<plugins>
<!--<plugin>
<plugin>
<groupId>com.vmlens</groupId>
<artifactId>vmlens-maven-plugin</artifactId>
<version>1.2.14</version>
Expand All @@ -359,11 +359,14 @@
<goal>test</goal>
</goals>
<configuration>
<includes>
<include>**/*CT.java</include>
</includes>
Comment on lines +362 to +364
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The indentation for the new <includes> block seems to be inconsistent, likely due to a mix of tabs and spaces. For better readability and maintainability, it's good practice to use consistent indentation. Adopting the 4-space indentation used elsewhere in this file would improve consistency.

Suggested change
<includes>
<include>**/*CT.java</include>
</includes>
<includes>
<include>**/*CT.java</include>
</includes>

<failIfNoTests>true</failIfNoTests>
</configuration>
</execution>
</executions>
</plugin>-->
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.8.1</version>
Expand Down
13 changes: 4 additions & 9 deletions src/test/java/dev/openfeature/sdk/e2e/steps/ProviderSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import java.util.Map;
import org.awaitility.Awaitility;

public class ProviderSteps {
private final State state;
Expand Down Expand Up @@ -113,19 +112,15 @@ private void setupMockProvider(ErrorCode errorCode, String errorMessage, Provide
switch (providerState) {
case FATAL:
case ERROR:
mockProvider.emitProviderReady(details);
mockProvider.emitProviderError(details);
mockProvider.emitProviderReady(details).await();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

mockProvider.emitProviderError(details).await();
break;
case STALE:
mockProvider.emitProviderReady(details);
mockProvider.emitProviderStale(details);
mockProvider.emitProviderReady(details).await();
mockProvider.emitProviderStale(details).await();
break;
default:
}
Awaitility.await().until(() -> {
ProviderState providerState1 = client.getProviderState();
return providerState1 == providerState;
});
}

private void configureMockEvaluations(FeatureProvider mockProvider, ErrorCode errorCode, String errorMessage) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

class VmLensTest {
class VmLensCT {
final OpenFeatureAPI api = OpenFeatureAPITestUtil.createAPI();

@BeforeEach
Expand Down
Loading