X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F61findnot.t;h=b8b0d31c29bd1b2595f0e598693d8301729858ea;hb=1e25c37c2a1b37307c6b151b1672664dfaa10766;hp=d7dde4db5a881f96a44d32ba28f7792e15bb35ed;hpb=65c1217de6381d5cc8ffb10cd6bb870144a2649b;p=dbsrgits%2FDBIx-Class.git diff --git a/t/61findnot.t b/t/61findnot.t index d7dde4d..b8b0d31 100644 --- a/t/61findnot.t +++ b/t/61findnot.t @@ -57,7 +57,7 @@ $artist_rs = $schema->resultset("Artist"); warnings_exist { $artist_rs->find({}) -} qr/\QDBIx::Class::ResultSet::find(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single/ +} qr/\QQuery returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single/ => "Non-unique find generated a cursor inexhaustion warning"; throws_ok { @@ -65,6 +65,7 @@ throws_ok { } qr/Unable to satisfy requested constraint 'primary'/; for (1, 0) { + local $ENV{DBIC_NULLABLE_KEY_NOWARN}; warnings_like sub { $artist_rs->find({ artistid => undef }, { key => 'primary' })