Skip to content

Commit cf54822

Browse files
committed
test: Disable scram test on older version without scram_iterations GUC
1 parent 7dbcc79 commit cf54822

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pgjdbc/src/test/java/org/postgresql/jdbc/ScramTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.postgresql.PGProperty;
1515
import org.postgresql.core.ServerVersion;
1616
import org.postgresql.test.TestUtil;
17+
import org.postgresql.test.annotations.EnabledForServerVersionRange;
1718
import org.postgresql.util.PSQLException;
1819
import org.postgresql.util.PSQLState;
1920

@@ -179,6 +180,7 @@ void rejectValidCredentialsAboveCustomCap() throws SQLException {
179180
}
180181

181182
@Test
183+
@EnabledForServerVersionRange(gte = "16")
182184
void acceptsValidCredentialsBelowCustomCap() throws SQLException {
183185
int serverScramIterations = Integer.parseInt(TestUtil.queryForString(con, "SHOW scram_iterations"));
184186
String password = "t0pSecret";

0 commit comments

Comments
 (0)