Correctly identify Prisma version with CockroachDB
@@ -122,11 +122,7 @@ async fn introspect_postgres_prisma_1(api: &TestApi) -> TestResult {
})
.await?;
- if api.is_cockroach() {
- assert_eq!(Version::NonPrisma, api.introspect_version().await?);
- } else {
assert_eq!(Version::Prisma1, api.introspect_version().await?);
- }
Ok(())
}
@@ -152,11 +148,7 @@ async fn introspect_postgres_prisma_1_1(api: &TestApi) -> TestResult {
})
.await?;
- if api.is_cockroach() {
- assert_eq!(Version::NonPrisma, api.introspect_version().await?);
- } else {
assert_eq!(Version::Prisma11, api.introspect_version().await?);
- }
Ok(())
}
@@ -184,11 +176,7 @@ async fn introspect_postgres_prisma2(api: &TestApi) -> TestResult {
})
.await?;
- if api.is_cockroach() {
- assert_eq!(Version::NonPrisma, api.introspect_version().await?);
- } else {
assert_eq!(Version::Prisma2, api.introspect_version().await?);
- }
Ok(())
}
