Skip to content

Commit a2dac8a

Browse files
committed
fix postgres check
1 parent 697cb8b commit a2dac8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Migrator.Tests/Providers/PostgreSQL/PostgreSQLTransformationProvider_PrimaryKeyWithIdentityTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ public void AddTableWithPrimaryKeyIdentity_Succeeds()
4141
var exception = Assert.Throws<PostgresException>(() => Provider.Insert(testTableName, [propertyName1, propertyName2], [1, 888]));
4242

4343
// Assert II
44-
Assert.That(exception.Message, Does.Contain("cannot insert a non-DEFAULT value into column"));
44+
Assert.That(exception.SqlState, Is.EqualTo("428C9"));
4545
}
4646
}

0 commit comments

Comments
 (0)