Skip to content

Commit 48fcdca

Browse files
committed
Fixed some tests
the exlicit one requires special database to be run
1 parent 48fd7f9 commit 48fcdca

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Orm/Xtensive.Orm.Tests.Sql/CompilerTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// Copyright (C) 2015 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
4-
// Created by: Alexey Kulakov
5-
// Created: 2015.02.06
1+
// Copyright (C) 2009-2022 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
64

75
using System;
86
using System.Linq;
@@ -220,7 +218,9 @@ private void DropSchema(Catalog catalog)
220218
dropBatch = SqlDml.Batch();
221219
}
222220
dropBatch.Add(SqlDdl.Drop(view));
223-
schema.Tables.Remove(schema.Tables[view.Name]);
221+
if (schema.Tables[view.Name]!=null) {
222+
_ = schema.Tables.Remove(schema.Tables[view.Name]);
223+
}
224224
}
225225

226226
foreach (var schemaTable in schema.Tables) {

Orm/Xtensive.Orm.Tests.Sql/SqlServer/MiscTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2009-2022 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44

55
using System;
66
using System.Data;
@@ -17,7 +17,7 @@
1717

1818
namespace Xtensive.Orm.Tests.Sql.SqlServer
1919
{
20-
[TestFixture]
20+
[TestFixture, Explicit]
2121
public class MiscTests: AdventureWorks
2222
{
2323
private SqlConnection sqlConnection;

0 commit comments

Comments
 (0)