Skip to content

Commit f9e8b4e

Browse files
author
Piyush Bisen
committed
Added null check condition in tests
1 parent 9369336 commit f9e8b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/scala/io/snappydata/CommandLineToolsSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class CommandLineToolsSuite extends SnappyTestRunner {
290290

291291
test("ODBC_FailOverTest_AddServer_BeforeConn") {
292292
val flag = System.getenv("SNAPPY_NATIVE_ENABLED")
293-
if (flag.equalsIgnoreCase("true")) {
293+
if (flag != null && flag.equalsIgnoreCase("true")) {
294294
var scriptPath = s"$snappyNativeTestDir/failoverTest_AddServer_BeforeConn.sh"
295295
var consoleOutput = s"$scriptPath $snappyProductDir $snappyNativeTestDir".!!
296296
assert(consoleOutput.contains("Test executed successfully connected to"),
@@ -301,7 +301,7 @@ class CommandLineToolsSuite extends SnappyTestRunner {
301301

302302
test("ODBC_FailOverTest_AddServer_AfterConn") {
303303
val flag = System.getenv("SNAPPY_NATIVE_ENABLED")
304-
if (flag.equalsIgnoreCase("true")) {
304+
if (flag != null && flag.equalsIgnoreCase("true")) {
305305
var scriptPath = s"$snappyNativeTestDir/failoverTest_AddServer_AfterConn.sh"
306306
var consoleOutput = s"$scriptPath $snappyProductDir $snappyNativeTestDir".!!
307307
assert(consoleOutput.contains("Test executed successfully connected to"),

0 commit comments

Comments
 (0)