Skip to content

Commit

Permalink
Fix typo in string.Cut refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed Oct 7, 2023
1 parent 24ed0e4 commit 91530db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgconn/pgconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,7 @@ func TestFatalErrorReceivedAfterCommandComplete(t *testing.T) {
}
}()

host, port, _ := strings.cut(ln.Addr().String(), ":")
host, port, _ := strings.Cut(ln.Addr().String(), ":")
connStr := fmt.Sprintf("sslmode=disable host=%s port=%s", host, port)

ctx, cancel = context.WithTimeout(ctx, 5*time.Second)
Expand Down

0 comments on commit 91530db

Please sign in to comment.