Skip to content

Commit 7d9fea9

Browse files
committed
Remove clear password test (not supported by PostgreSQL anymore)
1 parent a944e06 commit 7d9fea9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/index.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ const login = {
1010
user: 'postgres_js_test'
1111
}
1212

13-
const login_clear = {
14-
user: 'postgres_js_test_clear',
15-
pass: 'postgres_js_test_clear'
16-
}
17-
1813
const login_md5 = {
1914
user: 'postgres_js_test_md5',
2015
pass: 'postgres_js_test_md5'
@@ -34,7 +29,7 @@ const options = {
3429
}
3530

3631
cp.execSync('dropdb ' + options.db + ';createdb ' + options.db)
37-
;[login, login_clear, login_md5, login_scram].forEach(x =>
32+
;[login, login_md5, login_scram].forEach(x =>
3833
cp.execSync('psql -c "grant all on database ' + options.db + ' to ' + x.user + '"')
3934
)
4035

@@ -291,10 +286,6 @@ t('Login without password', async() => {
291286
return [true, (await postgres({ ...options, ...login })`select true as x`)[0].x]
292287
})
293288

294-
t('Login using cleartext', async() => {
295-
return [true, (await postgres({ ...options, ...login_clear })`select true as x`)[0].x]
296-
})
297-
298289
t('Login using MD5', async() => {
299290
return [true, (await postgres({ ...options, ...login_md5 })`select true as x`)[0].x]
300291
})

0 commit comments

Comments
 (0)