Fix incorrect comparison
[dbsrgits/DBIx-Class.git] / t / inflate / datetime_mssql.t
index c1ce5dd..25524de 100644 (file)
@@ -95,8 +95,8 @@ SQL
       ->first
     );
     is( $row->$col, $dt, "$type roundtrip" );
-    
-    is( $row->$col->nanosecond, $sample_dt->{nanosecond},
+
+    cmp_ok( $row->$col->nanosecond, '==', $sample_dt->{nanosecond},
       'DateTime fractional portion roundtrip' )
       if exists $sample_dt->{nanosecond};
   }