From 4ba0a2308ded20105d547c7d5b51f0edbf508e45 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Fri, 24 May 2024 18:51:59 +0530 Subject: [PATCH] fix: tests --- .../GenerateThirdPartyConfig_ProviderClient.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/test/java/io/supertokens/test/multitenant/generator/GenerateThirdPartyConfig_ProviderClient.java b/src/test/java/io/supertokens/test/multitenant/generator/GenerateThirdPartyConfig_ProviderClient.java index 879c61085..86de35f5d 100644 --- a/src/test/java/io/supertokens/test/multitenant/generator/GenerateThirdPartyConfig_ProviderClient.java +++ b/src/test/java/io/supertokens/test/multitenant/generator/GenerateThirdPartyConfig_ProviderClient.java @@ -192,26 +192,16 @@ private static ConfigGenerator.GeneratedValueAndExpectation generateForBoxy(bool ); } else { String EXPECTED_ERROR = "a non empty string value must be specified for boxyURL in the additionalConfig for Boxy SAML provider"; - int option = new Random().nextInt(5); + int option = new Random().nextInt(3); switch (option) { case 0: - return new ConfigGenerator.GeneratedValueAndExpectation( - null, - new ConfigGenerator.Expectation("exception", EXPECTED_ERROR) - ); - case 1: - return new ConfigGenerator.GeneratedValueAndExpectation( - new JsonObject(), - new ConfigGenerator.Expectation("exception", EXPECTED_ERROR) - ); - case 2: JsonObject result = new JsonObject(); result.add("boxyURL", null); return new ConfigGenerator.GeneratedValueAndExpectation( result, new ConfigGenerator.Expectation("exception", EXPECTED_ERROR) ); - case 3: + case 1: result = new JsonObject(); result.add("boxyURL", new JsonPrimitive("")); return new ConfigGenerator.GeneratedValueAndExpectation(