Skip to content

Commit e1eaf4e

Browse files
authored
chore: update failing tests (#732)
Signed-off-by: Todd Baert <[email protected]>
1 parent b5dc2eb commit e1eaf4e

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

Diff for: providers/configcat/src/test/java/dev/openfeature/contrib/providers/configcat/ConfigCatProviderTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ void contextTransformTest() {
218218
String country = "someCountry";
219219
String customPropertyValue = "customProperty_value";
220220
String customPropertyKey = "customProperty";
221+
String targetingKeyKey = "targetingKey";
221222

222223
MutableContext evaluationContext = new MutableContext();
223224
evaluationContext.setTargetingKey(userId);
@@ -227,7 +228,7 @@ void contextTransformTest() {
227228

228229
HashMap<String, Object > customMap = new HashMap<>();
229230
customMap.put(customPropertyKey, customPropertyValue);
230-
customMap.put("targetingKey", userId);
231+
customMap.put(targetingKeyKey, userId);
231232
User expectedUser = User.newBuilder().email(email).country(country).custom(customMap).build(userId);
232233
User transformedUser = ContextTransformer.transform(evaluationContext);
233234

Diff for: providers/statsig/src/test/java/dev/openfeature/contrib/providers/statsig/StatsigProviderTest.java

+13-13
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@
4343
*/
4444
class StatsigProviderTest {
4545

46-
public static final String FLAG_NAME = "enabledFeature";
47-
public static final String CONFIG_FLAG_NAME = "alias";
48-
public static final String LAYER_FLAG_NAME = "alias";
49-
public static final String CONFIG_FLAG_VALUE = "test";
50-
public static final String INT_FLAG_NAME = "revision";
51-
public static final String LAYER_INT_FLAG_NAME = "revision";
52-
public static final Integer INT_FLAG_VALUE = 5;
53-
public static final String DOUBLE_FLAG_NAME = "price";
54-
public static final String LAYER_DOUBLE_FLAG_NAME = "price";
55-
public static final Double DOUBLE_FLAG_VALUE = 3.14;
56-
public static final String USERS_FLAG_NAME = "userIdMatching";
57-
public static final String PROPERTIES_FLAG_NAME = "emailMatching";
58-
public static final String TARGETING_KEY = "user1";
46+
private static final String FLAG_NAME = "enabledFeature";
47+
private static final String CONFIG_FLAG_NAME = "alias";
48+
private static final String LAYER_FLAG_NAME = "alias";
49+
private static final String CONFIG_FLAG_VALUE = "test";
50+
private static final String INT_FLAG_NAME = "revision";
51+
private static final String LAYER_INT_FLAG_NAME = "revision";
52+
private static final Integer INT_FLAG_VALUE = 5;
53+
private static final String DOUBLE_FLAG_NAME = "price";
54+
private static final String LAYER_DOUBLE_FLAG_NAME = "price";
55+
private static final Double DOUBLE_FLAG_VALUE = 3.14;
56+
private static final String USERS_FLAG_NAME = "userIdMatching";
57+
private static final String PROPERTIES_FLAG_NAME = "emailMatching";
58+
private static final String TARGETING_KEY = "user1";
5959
private static StatsigProvider statsigProvider;
6060
private static Client client;
6161

0 commit comments

Comments
 (0)