Skip to content

Commit

Permalink
Use string contains methods instead of binary operators (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornys authored Jan 8, 2024
1 parent f2fd364 commit 52a7d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/io/odh/test/e2e/upgrade/OlmUpgradeST.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class OlmUpgradeST extends UpgradeAbstract {
private static final Logger LOGGER = LoggerFactory.getLogger(OlmUpgradeST.class);
private static final String DS_PROJECT_NAME = "upgrade-dsc";

private final String startingVersion = Environment.PRODUCT != Environment.PRODUCT_DEFAULT ? "2.4.0" : "v.2.4.0";
private final String startingVersion = !Environment.PRODUCT.equals(Environment.PRODUCT_DEFAULT) ? "2.4.0" : "v.2.4.0";

@Test
@Disabled("Tested only for upgrades from 2.4+ so we are waiting for 2.5 release")
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/odh/test/e2e/upgrade/UpgradeAbstract.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void deployNotebook(String namespace, String name) throws IOException {
ResourceManager.getInstance().createResourceWithoutWait(pvc);

Notebook notebook = new NotebookBuilder(NotebookResource.loadDefaultNotebook(namespace, name)).build();
if (Environment.PRODUCT != Environment.PRODUCT_DEFAULT) {
if (!Environment.PRODUCT.equals(Environment.PRODUCT_DEFAULT)) {
notebook = new NotebookBuilder(NotebookResource.loadDefaultNotebook(namespace, name))
.editSpec()
.editNotebookspecTemplate()
Expand Down

0 comments on commit 52a7d8e

Please sign in to comment.