Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c256df3

Browse files
committed
add note
1 parent de7e7d9 commit c256df3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

coderd/database/awsrdsiam/driver_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"os"
66
"testing"
77

8-
"github.com/aws/aws-sdk-go-v2/config"
98
"github.com/stretchr/testify/require"
109

1110
"cdr.dev/slog/sloggers/slogtest"
@@ -17,10 +16,10 @@ import (
1716

1817
func TestDriver(t *testing.T) {
1918
t.Parallel()
20-
cfg, err := config.LoadDefaultConfig(context.Background())
21-
require.NoError(t, err)
22-
t.Logf("%#v", cfg)
2319
// Be sure to set AWS_DEFAULT_REGION to the database region as well.
20+
// Example:
21+
// export AWS_DEFAULT_REGION=us-east-2;
22+
// export DBAWSIAMRDS_TEST_URL="postgres://user@host:5432/dbname";
2423
url := os.Getenv("DBAWSIAMRDS_TEST_URL")
2524
if url == "" {
2625
t.Skip()

0 commit comments

Comments
 (0)