Skip to content

Commit

Permalink
cleaner string
Browse files Browse the repository at this point in the history
  • Loading branch information
typotter committed Nov 26, 2024
1 parent 7b3bfa1 commit 9f0108f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/java/cloud/eppo/BaseEppoClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ public class BaseEppoClientTest {
private static final Logger log = LoggerFactory.getLogger(BaseEppoClientTest.class);
private static final String DUMMY_FLAG_API_KEY = "dummy-flags-api-key"; // Will load flags-v1

// Use the branch specified by env variable `TEST_DATA_BRANCH`.
// Use branch if specified by env variable `TEST_DATA_BRANCH`.
private static final String TEST_BRANCH = System.getenv("TEST_DATA_BRANCH");
private static final String TEST_HOST_BASE =
"https://us-central1-eppo-qa.cloudfunctions.net/serveGitHubRacTestFile";
private static final String TEST_HOST =
"https://us-central1-eppo-qa.cloudfunctions.net/serveGitHubRacTestFile/"
+ (TEST_BRANCH != null ? "b/" + TEST_BRANCH : "");
TEST_HOST_BASE + (TEST_BRANCH != null ? "/b/" + TEST_BRANCH : "");

private final ObjectMapper mapper =
new ObjectMapper().registerModule(AssignmentTestCase.assignmentTestCaseModule());
Expand Down

0 comments on commit 9f0108f

Please sign in to comment.