diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh
index 5530d773768935b8317c3caca2746fe7a4731655..c9c756b60c044ed9519832daeea1dc235dbdb97f 100644
--- a/tests/nix-profile.sh
+++ b/tests/nix-profile.sh
@@ -6,5 +6,5 @@ mkdir -p $home
 HOME=$home $SHELL -e -c ". $sysconfdir/profile.d/nix.sh"
 HOME=$home $SHELL -e -c ". $sysconfdir/profile.d/nix.sh" # test idempotency
 
-[ -e $home/.nix-profile ]
+[ -L $home/.nix-profile ]
 [ -e $home/.nix-channels ]