File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/test/scala/io/snappydata Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ class CommandLineToolsSuite extends SnappyTestRunner {
290
290
291
291
test(" ODBC_FailOverTest_AddServer_BeforeConn" ) {
292
292
val flag = System .getenv(" SNAPPY_NATIVE_ENABLED" )
293
- if (flag.equalsIgnoreCase(" true" )) {
293
+ if (flag != null && flag .equalsIgnoreCase(" true" )) {
294
294
var scriptPath = s " $snappyNativeTestDir/failoverTest_AddServer_BeforeConn.sh "
295
295
var consoleOutput = s " $scriptPath $snappyProductDir $snappyNativeTestDir" .!!
296
296
assert(consoleOutput.contains(" Test executed successfully connected to" ),
@@ -301,7 +301,7 @@ class CommandLineToolsSuite extends SnappyTestRunner {
301
301
302
302
test(" ODBC_FailOverTest_AddServer_AfterConn" ) {
303
303
val flag = System .getenv(" SNAPPY_NATIVE_ENABLED" )
304
- if (flag.equalsIgnoreCase(" true" )) {
304
+ if (flag != null && flag .equalsIgnoreCase(" true" )) {
305
305
var scriptPath = s " $snappyNativeTestDir/failoverTest_AddServer_AfterConn.sh "
306
306
var consoleOutput = s " $scriptPath $snappyProductDir $snappyNativeTestDir" .!!
307
307
assert(consoleOutput.contains(" Test executed successfully connected to" ),
You can’t perform that action at this time.
0 commit comments