Skip to content

Commit 0fa41b9

Browse files
committed
Test fixes to avoid collisions
1 parent 7fbfe9b commit 0fa41b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/postgrest/main_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var testConfig test.Config
1414

1515
func TestMain(m *testing.M) {
1616
c := map[string]any{
17-
"Address": "localhost:8082",
17+
"Address": "localhost:8084",
1818
"JWTSecret": "reallyreallyreallyreallyverysafe",
1919
"AllowAnon": false,
2020
"EnableAdminRoute": true,
@@ -40,7 +40,7 @@ func TestMain(m *testing.M) {
4040
anonymousToken, _ := authn.GenerateToken("postgrest_test_anonymous", s.JWTSecret())
4141

4242
testConfig = test.Config{
43-
BaseUrl: "http://localhost:8082/api/pgrest",
43+
BaseUrl: "http://localhost:8084/api/pgrest",
4444
CommonHeaders: test.Headers{
4545
"Authorization": {anonymousToken},
4646
"Accept-Profile": {"test"},
@@ -49,12 +49,12 @@ func TestMain(m *testing.M) {
4949
}
5050

5151
go s.Start()
52-
test.WaitForServer("http://localhost:8082")
52+
test.WaitForServer("http://localhost:8084")
5353

5454
// Tear-up
5555

5656
cmdConfig := test.Config{
57-
BaseUrl: "http://localhost:8082/admin",
57+
BaseUrl: "http://localhost:8084/admin",
5858
CommonHeaders: test.Headers{"Authorization": {postgresToken}},
5959
}
6060

0 commit comments

Comments
 (0)