diff --git a/matlab/tests/check_mds.m b/matlab/tests/check_mds.m
index 51ff6d391f0f2d4a4ef37924eebe41859df58836..c239ea011812db9edc029e44e81bec822cd6e765 100644
--- a/matlab/tests/check_mds.m
+++ b/matlab/tests/check_mds.m
@@ -1,8 +1,8 @@
 classdef check_mds < matlab.unittest.fixtures.Fixture
   methods
     function setup(fixture)
-      fixture.assumeFalse(~exist('mdsdata','file'),'mdsdata not found - is mds on path?');
+      fixture.assumeFalse(~exist('mdsconnect','file'),'mdsdata not found - is mds on path?');
       % other environment checks here
     end
   end
-end
\ No newline at end of file
+end