Skip to content

Commit

Permalink
Merge pull request #1096 from tediousjs/arthur/fix-test-on-sqlserver-…
Browse files Browse the repository at this point in the history
…2019

Fix running tests on SQLServer 2019
  • Loading branch information
arthurschreiber committed May 20, 2020
2 parents b27fbe2 + 22e802e commit 040d4bd
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/integration/transactions-test.js
Expand Up @@ -297,17 +297,11 @@ describe('Transactions Test', function() {
assert.ok(true);
});

req = new Request(
"insert into #temp values ('asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd')",
function(err) {
assert.strictEqual(
err.message,
'String or binary data would be truncated.'
);
req = new Request("insert into #temp values ('asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd')", function(err) {
assert.match(err.message, /^String or binary data would be truncated/);

connection.close();
}
);
connection.close();
});
connection.execSqlBatch(req);
});
});
Expand Down

0 comments on commit 040d4bd

Please sign in to comment.