Skip to content

Commit 473f4df

Browse files
committed
revert port on tests
1 parent e741fa0 commit 473f4df

9 files changed

+34
-39
lines changed

test/decode_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import 'package:test/test.dart';
44
void main() {
55
late PostgreSQLConnection connection;
66
setUp(() async {
7-
connection = PostgreSQLConnection('localhost', 'dart_test',
8-
port: 5432, username: 'dart', password: 'dart');
7+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
8+
username: 'dart', password: 'dart');
99
await connection.open();
1010

1111
await connection.execute('''

test/encoding_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ late PostgreSQLConnection conn;
1414
void main() {
1515
group('Binary encoders', () {
1616
setUp(() async {
17-
conn = PostgreSQLConnection('localhost', 'dart_test',
18-
port: 5432, username: 'dart', password: 'dart');
17+
conn = PostgreSQLConnection('localhost', 5432, 'dart_test',
18+
username: 'dart', password: 'dart');
1919
await conn.open();
2020
});
2121

test/json_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ void main() {
55
late PostgreSQLConnection connection;
66

77
setUp(() async {
8-
connection = PostgreSQLConnection('localhost', 'dart_test',
9-
port: 5432, username: 'dart', password: 'dart');
8+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
9+
username: 'dart', password: 'dart');
1010
await connection.open();
1111

1212
await connection.execute('''

test/map_return_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ void main() {
77
late PostgreSQLConnection connection;
88

99
setUp(() async {
10-
connection = PostgreSQLConnection('localhost', 'dart_test',
11-
port: 5432, username: 'dart', password: 'dart');
10+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
11+
username: 'dart', password: 'dart');
1212
await connection.open();
1313

1414
await connection.execute('''

test/notification_test.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ import 'package:test/test.dart';
55

66
void main() {
77
group('Successful notifications', () {
8-
var connection = PostgreSQLConnection('localhost', 'dart_test',
9-
port: 5432, username: 'dart', password: 'dart');
10-
8+
late PostgreSQLConnection connection;
119
setUp(() async {
12-
connection = PostgreSQLConnection('localhost', 'dart_test',
13-
port: 5432, username: 'dart', password: 'dart');
10+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
11+
username: 'dart', password: 'dart');
1412
await connection.open();
1513
});
1614

test/query_reuse_test.dart

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ void main() {
1414
late PostgreSQLConnection connection;
1515

1616
setUp(() async {
17-
connection = PostgreSQLConnection('localhost', 'dart_test',
18-
port: 5432, username: 'dart', password: 'dart');
17+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
18+
username: 'dart', password: 'dart');
1919
await connection.open();
2020
await connection.execute(
2121
'CREATE TEMPORARY TABLE t (i int, s serial, bi bigint, bs bigserial, bl boolean, si smallint, t text, f real, d double precision, dt date, ts timestamp, tsz timestamptz)');
@@ -284,8 +284,8 @@ void main() {
284284
late PostgreSQLConnection connection;
285285

286286
setUp(() async {
287-
connection = PostgreSQLConnection('localhost', 'dart_test',
288-
port: 5432, username: 'dart', password: 'dart');
287+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
288+
username: 'dart', password: 'dart');
289289
await connection.open();
290290
await connection.execute(
291291
'CREATE TEMPORARY TABLE t (i1 int not null, i2 int not null)');
@@ -440,12 +440,11 @@ void main() {
440440
});
441441

442442
group('Failure cases', () {
443-
var connection = PostgreSQLConnection('localhost', 'dart_test',
444-
port: 5432, username: 'dart', password: 'dart');
443+
late PostgreSQLConnection connection;
445444

446445
setUp(() async {
447-
connection = PostgreSQLConnection('localhost', 'dart_test',
448-
port: 5432, username: 'dart', password: 'dart');
446+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
447+
username: 'dart', password: 'dart');
449448
await connection.open();
450449
await connection.execute(
451450
'CREATE TEMPORARY TABLE t (i int, s serial, bi bigint, bs bigserial, bl boolean, si smallint, t text, f real, d double precision, dt date, ts timestamp, tsz timestamptz)');

test/query_test.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ import 'package:postgres/src/types.dart';
44

55
void main() {
66
group('Successful queries', () {
7-
var connection = PostgreSQLConnection('localhost', 'dart_test',
8-
port: 5432, username: 'dart', password: 'dart');
7+
late PostgreSQLConnection connection;
98

109
setUp(() async {
11-
connection = PostgreSQLConnection('localhost', 'dart_test',
12-
port: 5432, username: 'dart', password: 'dart');
10+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
11+
username: 'dart', password: 'dart');
1312
await connection.open();
1413
await connection.execute('CREATE TEMPORARY TABLE t '
1514
'(i int, s serial, bi bigint, '
@@ -332,12 +331,11 @@ void main() {
332331
});
333332

334333
group('Unsuccesful queries', () {
335-
var connection = PostgreSQLConnection('localhost', 'dart_test',
336-
port: 5432, username: 'dart', password: 'dart');
334+
late PostgreSQLConnection connection;
337335

338336
setUp(() async {
339-
connection = PostgreSQLConnection('localhost', 'dart_test',
340-
port: 5432, username: 'dart', password: 'dart');
337+
connection = PostgreSQLConnection('localhost', 5432, 'dart_test',
338+
username: 'dart', password: 'dart');
341339
await connection.open();
342340
await connection.execute(
343341
'CREATE TEMPORARY TABLE t (i1 int not null, i2 int not null)');

test/timeout_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ void main() {
88
late PostgreSQLConnection conn;
99

1010
setUp(() async {
11-
conn = PostgreSQLConnection('localhost', 'dart_test',
12-
port: 5432, username: 'dart', password: 'dart');
11+
conn = PostgreSQLConnection('localhost', 5432, 'dart_test',
12+
username: 'dart', password: 'dart');
1313
await conn.open();
1414
await conn.execute('CREATE TEMPORARY TABLE t (id INT UNIQUE)');
1515
});

test/transaction_test.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ void main() {
1010
late PostgreSQLConnection conn;
1111

1212
setUp(() async {
13-
conn = PostgreSQLConnection('localhost', 'dart_test',
14-
port: 5432, username: 'dart', password: 'dart');
13+
conn = PostgreSQLConnection('localhost', 5432, 'dart_test',
14+
username: 'dart', password: 'dart');
1515
await conn.open();
1616
await conn.execute('CREATE TEMPORARY TABLE t (id INT UNIQUE)');
1717
});
@@ -302,8 +302,8 @@ void main() {
302302
late PostgreSQLConnection conn;
303303

304304
setUp(() async {
305-
conn = PostgreSQLConnection('localhost', 'dart_test',
306-
port: 5432, username: 'dart', password: 'dart');
305+
conn = PostgreSQLConnection('localhost', 5432, 'dart_test',
306+
username: 'dart', password: 'dart');
307307
await conn.open();
308308
await conn.execute('CREATE TEMPORARY TABLE t (id INT UNIQUE)');
309309
});
@@ -403,8 +403,8 @@ void main() {
403403
late PostgreSQLConnection conn;
404404

405405
setUp(() async {
406-
conn = PostgreSQLConnection('localhost', 'dart_test',
407-
port: 5432, username: 'dart', password: 'dart');
406+
conn = PostgreSQLConnection('localhost', 5432, 'dart_test',
407+
username: 'dart', password: 'dart');
408408
await conn.open();
409409
await conn.execute('CREATE TEMPORARY TABLE t (id INT UNIQUE)');
410410
});
@@ -549,8 +549,8 @@ void main() {
549549
late PostgreSQLConnection conn;
550550

551551
setUp(() async {
552-
conn = PostgreSQLConnection('localhost', 'dart_test',
553-
port: 5432, username: 'dart', password: 'dart');
552+
conn = PostgreSQLConnection('localhost', 5432, 'dart_test',
553+
username: 'dart', password: 'dart');
554554
await conn.open();
555555
await conn.execute('CREATE TEMPORARY TABLE t (id INT UNIQUE)');
556556
});

0 commit comments

Comments
 (0)