Remove use of Try::Tiny entirely (the missing part of ddcc02d1)
[dbsrgits/DBIx-Class.git] / t / icdt / engine_specific / mssql.t
index 2756858..3ba9d12 100644 (file)
@@ -6,7 +6,6 @@ use warnings;
 
 use Test::More;
 use Test::Exception;
-use Try::Tiny;
 use DBIx::Class::_Util 'scope_guard';
 
 use DBICTest;
@@ -56,7 +55,7 @@ for my $connect_info (@connect_info) {
   my $guard = scope_guard { cleanup($schema) };
 
   # $^W because DBD::ADO is a piece of crap
-  try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE track") };
+  eval { local $^W = 0; $schema->storage->dbh->do("DROP TABLE track") };
   $schema->storage->dbh->do(<<"SQL");
 CREATE TABLE track (
  trackid INT IDENTITY PRIMARY KEY,
@@ -65,14 +64,14 @@ CREATE TABLE track (
  last_updated_at DATETIME,
 )
 SQL
-  try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event_small_dt") };
+  eval { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event_small_dt") };
   $schema->storage->dbh->do(<<"SQL");
 CREATE TABLE event_small_dt (
  id INT IDENTITY PRIMARY KEY,
  small_dt SMALLDATETIME,
 )
 SQL
-  try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event") };
+  eval { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event") };
   $schema->storage->dbh->do(<<"SQL");
 CREATE TABLE event (
    id int IDENTITY(1,1) NOT NULL,