Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update failing tests #732

Merged
merged 5 commits into from
Apr 1, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ void contextTransformTest() {
String country = "someCountry";
String customPropertyValue = "customProperty_value";
String customPropertyKey = "customProperty";
String targetingKeyKey = "targetingKey";

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

HashMap<String, Object > customMap = new HashMap<>();
customMap.put(customPropertyKey, customPropertyValue);
customMap.put("targetingKey", userId);
customMap.put(targetingKeyKey, userId);
User expectedUser = User.newBuilder().email(email).country(country).custom(customMap).build(userId);
User transformedUser = ContextTransformer.transform(evaluationContext);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
*/
class StatsigProviderTest {

public static final String FLAG_NAME = "enabledFeature";
public static final String CONFIG_FLAG_NAME = "alias";
public static final String LAYER_FLAG_NAME = "alias";
public static final String CONFIG_FLAG_VALUE = "test";
public static final String INT_FLAG_NAME = "revision";
public static final String LAYER_INT_FLAG_NAME = "revision";
public static final Integer INT_FLAG_VALUE = 5;
public static final String DOUBLE_FLAG_NAME = "price";
public static final String LAYER_DOUBLE_FLAG_NAME = "price";
public static final Double DOUBLE_FLAG_VALUE = 3.14;
public static final String USERS_FLAG_NAME = "userIdMatching";
public static final String PROPERTIES_FLAG_NAME = "emailMatching";
public static final String TARGETING_KEY = "user1";
private static final String FLAG_NAME = "enabledFeature";
private static final String CONFIG_FLAG_NAME = "alias";
private static final String LAYER_FLAG_NAME = "alias";
private static final String CONFIG_FLAG_VALUE = "test";
private static final String INT_FLAG_NAME = "revision";
private static final String LAYER_INT_FLAG_NAME = "revision";
private static final Integer INT_FLAG_VALUE = 5;
private static final String DOUBLE_FLAG_NAME = "price";
private static final String LAYER_DOUBLE_FLAG_NAME = "price";
private static final Double DOUBLE_FLAG_VALUE = 3.14;
private static final String USERS_FLAG_NAME = "userIdMatching";
private static final String PROPERTIES_FLAG_NAME = "emailMatching";
private static final String TARGETING_KEY = "user1";
private static StatsigProvider statsigProvider;
private static Client client;

Expand Down
Loading