Skip to content

Commit 061dc11

Browse files
committed
Modify test case to expect generic error rather than specific 22007 error
1 parent 367fdae commit 061dc11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jones-mysql/test/temporaltypes/TypeTest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,15 @@ t11.run = function() {
203203
};
204204

205205
// cYear
206-
// Error 22007 on attempt to store string "" in year column
206+
// Error on attempt to store string "" in year column
207207
var t12 = new harness.ConcurrentTest("VerifyEmptyStringYear");
208208
t12.run = function() {
209209
var data = new TestData(22);
210210
data.cYear = "";
211-
var verifier = new ErrorVerifier(this, "22007");
212211
fail_openSession(this, function(session) {
213212
session.persist(data, function(err) {
214-
verifier.run(err);
213+
t12.errorIfUnset("Expected error", err);
214+
t12.failOnError();
215215
});
216216
});
217217
};

0 commit comments

Comments
 (0)