diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh
index 0dcbc93d412a0f6c40424148e9c97ac439c15ebe..9b4b132d23be7d6bbff88c4c1e6cd52db131ac5a 100644
--- a/contrib/pg_upgrade/test.sh
+++ b/contrib/pg_upgrade/test.sh
@@ -12,8 +12,6 @@
 set -e
 
 : ${MAKE=make}
-: ${PGPORT=50432}
-export PGPORT
 
 testhost=`uname -s`