Skip to content

Commit 2266c40

Browse files
committed
remove test dependency on tsqlt schema objects
1 parent 50bb76e commit 2266c40

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/sp_estindex.Tests.sql

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,12 @@ BEGIN;
488488
--Build
489489
DECLARE @Verbose BIT = 0;
490490
DECLARE @IndexColumns VARCHAR(50) = 'name';
491-
DECLARE @SchemaName SYSNAME = 'tSQLt';
492-
DECLARE @TableName SYSNAME = 'Private_AssertEqualsTableSchema_Actual';
491+
DECLARE @SchemaName SYSNAME = 'dbo';
492+
DECLARE @TableName SYSNAME = 'NullableTest';
493+
494+
CREATE TABLE dbo.NullableTest (
495+
[name] varchar(50) NULL
496+
);
493497

494498
DECLARE @command NVARCHAR(MAX) = CONCAT('EXEC [dbo].[sp_estindex] @TableName = ''', @TableName, ''', @IndexColumns = ''',@IndexColumns, ''', @SchemaName = ''', @SchemaName, ''', @Verbose =', @Verbose, ';');
495499

@@ -542,8 +546,12 @@ BEGIN;
542546
--Build
543547
DECLARE @Verbose BIT = 1;
544548
DECLARE @IndexColumns VARCHAR(50) = 'name';
545-
DECLARE @SchemaName SYSNAME = 'tSQLt';
546-
DECLARE @TableName SYSNAME = 'Private_AssertEqualsTableSchema_Actual';
549+
DECLARE @SchemaName SYSNAME = 'dbo';
550+
DECLARE @TableName SYSNAME = 'VerboseTest';
551+
552+
CREATE TABLE dbo.VerboseTest (
553+
[name] varchar(50) NULL
554+
);
547555

548556
DECLARE @command NVARCHAR(MAX) = CONCAT('EXEC [dbo].[sp_estindex] @TableName = ''', @TableName, ''', @IndexColumns = ''',@IndexColumns, ''', @SchemaName = ''', @SchemaName, ''', @Verbose =', @Verbose, ';');
549557

0 commit comments

Comments
 (0)