diff --git a/tests/bcrypt-compatibility-test.js b/tests/bcrypt-compatibility-test.js
index e8f9d8c3d8311493b7e78fa14ada066216d75c99..415e56cabaa6e1bfe4ba4f6cd5e418ea8ee275be 100644
--- a/tests/bcrypt-compatibility-test.js
+++ b/tests/bcrypt-compatibility-test.js
@@ -18,7 +18,7 @@ suite.addBatch({
   "new bcrypt of password for given salt": {
     topic: function () {
       var salt = "$2a$04$rakQlaS/TyfjZmoVuRs9ku";
-      bcrypt.encrypt("Thisismypassword1!", salt, this.callback);
+      bcrypt.hash("Thisismypassword1!", salt, this.callback);
     },
     "should match old bcrypt": function (hash) {
       assert.strictEqual(hash, '$2a$04$rakQlaS/TyfjZmoVuRs9kuQHFk2oShl8DNmVbxgSZyOE8Hzgk0One');